Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001541/0.001541, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 246.3 MB, free: 10.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2575/0.2575, allocations: 46.12 MB / 343.7 MB, free: 11.76 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002276/0.002276, allocations: 80.12 kB / 416.9 MB, free: 20.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1408, allocations: 62.45 MB / 479.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.008451/0.1493, allocations: 3.066 MB / 482.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003212/0.1526, allocations: 1.067 MB / 483.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003314/0.153, allocations: 8 kB / 483.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003295/0.1534, allocations: 51.56 kB / 483.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003868/0.1538, allocations: 103.1 kB / 483.7 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008532/0.1547, allocations: 155.7 kB / 483.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006997/0.1554, allocations: 433.9 kB / 484.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003238/0.1557, allocations: 106 kB / 484.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002709/0.156, allocations: 147.4 kB / 484.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003287/0.1563, allocations: 171.2 kB / 484.6 MB, free: 364 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.244e-05/0.1564, allocations: 20 kB / 484.7 MB, free: 344 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.1566, allocations: 39.98 kB / 484.7 MB, free: 304 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.1567, allocations: 71.7 kB / 484.8 MB, free: 232 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002885/0.157, allocations: 179.1 kB / 485 MB, free: 52 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007166/0.1578, allocations: 422.8 kB / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.1578, allocations: 0 / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1578, allocations: 0 / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.1578, allocations: 0 / 485.4 MB, free: 15.64 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.00155/0.1594, allocations: 0.6552 MB / 486 MB, free: 14.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.977e-05/0.1594, allocations: 12.88 kB / 486 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004516/0.1599, allocations: 68.38 kB / 486.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005064/0.1604, allocations: 283.5 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.262e-05/0.1605, allocations: 25.38 kB / 486.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.385e-05/0.1606, allocations: 44.27 kB / 486.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008946/0.1615, allocations: 363.5 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.665e-05/0.1616, allocations: 8 kB / 486.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.367e-05/0.1616, allocations: 16 kB / 486.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.1617, allocations: 12 kB / 486.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006833/0.1623, allocations: 227.7 kB / 487.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003259/0.1656, allocations: 1.585 MB / 488.6 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008296/0.1665, allocations: 311.6 kB / 488.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002495/0.1667, allocations: 89.17 kB / 489 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.381e-05/0.1668, allocations: 8 kB / 489 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.702e-05/0.1668, allocations: 46.48 kB / 489.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.804e-06/0.1668, allocations: 0 / 489.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.001005/0.1679, allocations: 261.1 kB / 489.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001452/0.168, allocations: 195.8 kB / 489.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003569/0.1684, allocations: 242.5 kB / 489.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.652e-05/0.1684, allocations: 29.7 kB / 489.8 MB, free: 10.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002138/0.1687, allocations: 224 kB / 490 MB, free: 10.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.1688, allocations: 102.5 kB / 490.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.169, allocations: 78.03 kB / 490.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002178/0.1692, allocations: 338.8 kB / 490.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.1695, allocations: 80.83 kB / 490.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004384/0.1699, allocations: 245.7 kB / 490.8 MB, free: 9.688 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007764/0.1707, allocations: 369 kB / 491.2 MB, free: 9.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.1707, allocations: 0 / 491.2 MB, free: 9.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009715/0.1717, allocations: 384.7 kB / 491.6 MB, free: 8.867 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.137e-05/0.1718, allocations: 8.625 kB / 491.6 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/0.1718, allocations: 8 kB / 491.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.22e-05/0.1718, allocations: 11.94 kB / 491.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005676/0.1724, allocations: 103.9 kB / 491.7 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.512e-05/0.1724, allocations: 15.92 kB / 491.7 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003761/0.1728, allocations: 43.59 kB / 491.8 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.384e-05/0.1729, allocations: 20 kB / 491.8 MB, free: 8.66 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.0002915/0.1732, allocations: 157.6 kB / 491.9 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001947/0.1734, allocations: 27.7 kB / 492 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000241/0.1737, allocations: 96.14 kB / 492.1 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.1737, allocations: 4 kB / 492.1 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.1737, allocations: 4 kB / 492.1 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.1737, allocations: 0 / 492.1 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.1747, allocations: 353.5 kB / 492.4 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.1747, allocations: 11.94 kB / 492.4 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005216/0.1753, allocations: 79.95 kB / 492.5 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.1753, allocations: 0 / 492.5 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.1753, allocations: 8 kB / 492.5 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.698e-06/0.1753, allocations: 7.938 kB / 492.5 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.1753, allocations: 4 kB / 492.5 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.1764, allocations: 0.7693 MB / 493.3 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.736e-05/0.1765, allocations: 108.8 kB / 493.4 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.28e-05/0.1766, allocations: 11.98 kB / 493.4 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003976/0.177, allocations: 12 kB / 493.4 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.486e-05/0.1771, allocations: 23.84 kB / 493.4 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.1771, allocations: 12 kB / 493.5 MB, free: 6.891 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002256/0.1773, allocations: 169.9 kB / 493.6 MB, free: 6.723 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1773, allocations: 0 / 493.6 MB, free: 6.723 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007583/0.1781, allocations: 99.69 kB / 493.7 MB, free: 6.625 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.0001428/0.1782, allocations: 107.2 kB / 493.8 MB, free: 6.512 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006367/0.1789, allocations: 233.3 kB / 494.1 MB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1789, allocations: 0 / 494.1 MB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.1791, allocations: 100.1 kB / 494.2 MB, free: 6.188 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/0.1803, allocations: 71.27 kB / 494.2 MB, free: 6.121 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00264/0.183, allocations: 1.431 MB / 495.7 MB, free: 4.648 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004961/0.1835, allocations: 0.7914 MB / 496.4 MB, free: 3.832 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001751/0.1837, allocations: 38.94 kB / 496.5 MB, free: 3.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.759e-05/0.1838, allocations: 27.44 kB / 496.5 MB, free: 3.762 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1838, allocations: 4 kB / 496.5 MB, free: 3.758 MB / 366.1 MB Notification: Performance of Templates: time 0.007675/0.1914, allocations: 2.892 MB / 499.4 MB, free: 0.8945 MB / 366.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches