Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008477/0.0008477, allocations: 96.56 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009222/0.0009223, allocations: 205.2 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2228/0.2228, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002919/0.000292, allocations: 11.98 kB / 419.5 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.138, allocations: 63.56 MB / 483.1 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003725/0.1418, allocations: 2.696 MB / 485.8 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002358/0.1442, allocations: 1.056 MB / 486.8 MB, free: 388 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004903/0.1447, allocations: 7.938 kB / 486.8 MB, free: 380 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000271/0.145, allocations: 43.64 kB / 486.9 MB, free: 336 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00055/0.1456, allocations: 115 kB / 487 MB, free: 220 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007931/0.1464, allocations: 151.7 kB / 487.1 MB, free: 68 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006643/0.147, allocations: 429.9 kB / 487.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002565/0.1473, allocations: 106 kB / 487.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002817/0.1476, allocations: 139.4 kB / 487.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003263/0.1479, allocations: 167.2 kB / 488 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.148, allocations: 16 kB / 488 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.1482, allocations: 39.98 kB / 488 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.335e-05/0.1482, allocations: 63.69 kB / 488.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002169/0.1485, allocations: 208.7 kB / 488.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004692/0.1489, allocations: 410.7 kB / 488.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.149, allocations: 0 / 488.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.149, allocations: 0 / 488.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.149, allocations: 0 / 488.7 MB, free: 14.5 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00108/0.1501, allocations: 0.5928 MB / 489.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.1501, allocations: 8.875 kB / 489.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003678/0.1505, allocations: 72.34 kB / 489.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003886/0.1509, allocations: 279.6 kB / 489.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.857e-05/0.1509, allocations: 25.38 kB / 489.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.606e-05/0.151, allocations: 44.27 kB / 489.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006183/0.1517, allocations: 367.5 kB / 490.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.266e-05/0.1517, allocations: 7.906 kB / 490.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.183e-05/0.1517, allocations: 16 kB / 490.1 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.1518, allocations: 8 kB / 490.1 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000458/0.1522, allocations: 227.8 kB / 490.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002377/0.1546, allocations: 1.593 MB / 491.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006296/0.1553, allocations: 311.6 kB / 492.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001847/0.1555, allocations: 101.2 kB / 492.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.1555, allocations: 4 kB / 492.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.1555, allocations: 42.48 kB / 492.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 2.024e-06/0.1555, allocations: 0 / 492.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007704/0.1563, allocations: 281.4 kB / 492.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.661e-05/0.1564, allocations: 187.9 kB / 492.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.1567, allocations: 238.6 kB / 493 MB, free: 9.781 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.1567, allocations: 33.7 kB / 493.1 MB, free: 9.742 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.1569, allocations: 219.8 kB / 493.3 MB, free: 9.523 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.157, allocations: 106.5 kB / 493.4 MB, free: 9.418 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.201e-05/0.1571, allocations: 41.7 kB / 493.4 MB, free: 9.371 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1572, allocations: 338.8 kB / 493.8 MB, free: 9.031 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001921/0.1574, allocations: 80.84 kB / 493.8 MB, free: 8.953 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002922/0.1577, allocations: 253.7 kB / 494.1 MB, free: 8.625 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005001/0.1582, allocations: 365 kB / 494.4 MB, free: 8.191 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.1582, allocations: 8 kB / 494.5 MB, free: 8.184 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006869/0.1589, allocations: 393.1 kB / 494.8 MB, free: 7.793 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.159, allocations: 8 kB / 494.8 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.159, allocations: 8 kB / 494.9 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.159, allocations: 8 kB / 494.9 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003506/0.1594, allocations: 107.8 kB / 495 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.697e-05/0.1594, allocations: 11.94 kB / 495 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002823/0.1597, allocations: 39.67 kB / 495 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.242e-05/0.1597, allocations: 24 kB / 495 MB, free: 7.59 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001843/0.1599, allocations: 161.8 kB / 495.2 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.1601, allocations: 27.62 kB / 495.2 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002043/0.1603, allocations: 95.38 kB / 495.3 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.1603, allocations: 4 kB / 495.3 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.1603, allocations: 4 kB / 495.3 MB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1603, allocations: 0 / 495.3 MB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007577/0.1611, allocations: 353.2 kB / 495.7 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1611, allocations: 4 kB / 495.7 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003917/0.1615, allocations: 87.89 kB / 495.8 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.555e-06/0.1615, allocations: 0 / 495.8 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.1616, allocations: 8 kB / 495.8 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.1616, allocations: 4 kB / 495.8 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.1616, allocations: 4 kB / 495.8 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008151/0.1624, allocations: 0.7705 MB / 496.5 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.438e-05/0.1625, allocations: 108.7 kB / 496.7 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.477e-05/0.1625, allocations: 12 kB / 496.7 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003128/0.1629, allocations: 12.08 kB / 496.7 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.05e-05/0.1629, allocations: 23.92 kB / 496.7 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.163, allocations: 19.92 kB / 496.7 MB, free: 5.805 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001573/0.1631, allocations: 169.9 kB / 496.9 MB, free: 5.637 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1631, allocations: 0 / 496.9 MB, free: 5.637 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006364/0.1638, allocations: 99.69 kB / 497 MB, free: 5.539 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001338/0.1639, allocations: 95.25 kB / 497.1 MB, free: 5.438 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000499/0.1644, allocations: 240.3 kB / 497.3 MB, free: 5.203 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1644, allocations: 0 / 497.3 MB, free: 5.203 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001895/0.1646, allocations: 101.8 kB / 497.4 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009813/0.1656, allocations: 76.69 kB / 497.5 MB, free: 5.031 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.1682, allocations: 1.64 MB / 499.1 MB, free: 3.348 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004842/0.1687, allocations: 0.7914 MB / 499.9 MB, free: 2.531 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001948/0.1689, allocations: 38.95 kB / 500 MB, free: 2.488 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.064e-05/0.1689, allocations: 31.42 kB / 500 MB, free: 2.457 MB / 366.1 MB Notification: Performance of SimCode: time 8.41e-07/0.169, allocations: 0 / 500 MB, free: 2.457 MB / 366.1 MB Notification: Performance of Templates: time 0.007434/0.1764, allocations: 2.883 MB / 0.4911 GB, free: 15.61 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches