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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00164/0.00164, allocations: 116.8 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002077/0.002077, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 230.2 MB / 255.2 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2296/0.2296, allocations: 46.88 MB / 358.1 MB, free: 10.52 MB / 286.1 MB " [Timeout remaining time 180] 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=5002,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=5002,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") [Timeout 660] "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.00227/0.00227, allocations: 75.88 kB / 0.4923 GB, free: 8.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1553, allocations: 65.98 MB / 0.5568 GB, free: 5.953 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.005071/0.1604, allocations: 3.053 MB / 0.5598 GB, free: 2.875 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.1628, allocations: 1.079 MB / 0.5608 GB, free: 1.793 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002106/0.163, allocations: 11.94 kB / 0.5608 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002329/0.1632, allocations: 59.38 kB / 0.5609 GB, free: 1.723 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000354/0.1636, allocations: 122.9 kB / 0.561 GB, free: 1.602 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006637/0.1642, allocations: 175.6 kB / 0.5612 GB, free: 1.43 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005645/0.1648, allocations: 457.8 kB / 0.5616 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002378/0.165, allocations: 83.58 kB / 0.5617 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002015/0.1652, allocations: 159.4 kB / 0.5618 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002676/0.1655, allocations: 179.2 kB / 0.562 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.941e-05/0.1656, allocations: 28 kB / 0.562 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.1657, allocations: 55.98 kB / 0.5621 GB, free: 488 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.936e-05/0.1658, allocations: 71.7 kB / 0.5621 GB, free: 416 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.166, allocations: 203 kB / 0.5623 GB, free: 212 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008045/0.1668, allocations: 446.2 kB / 0.5628 GB, free: 15.77 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1668, allocations: 0 / 0.5628 GB, free: 15.77 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1668, allocations: 3.938 kB / 0.5628 GB, free: 15.77 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.1668, allocations: 0 / 0.5628 GB, free: 15.77 MB / 430.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.001154/0.168, allocations: 0.6663 MB / 0.5634 GB, free: 15.05 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.168, allocations: 15.97 kB / 0.5634 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003022/0.1683, allocations: 68.62 kB / 0.5635 GB, free: 14.97 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/0.1688, allocations: 291.3 kB / 0.5638 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.176e-05/0.1688, allocations: 29.38 kB / 0.5638 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.43e-05/0.1689, allocations: 40.33 kB / 0.5638 GB, free: 14.58 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00068/0.1696, allocations: 371.5 kB / 0.5642 GB, free: 14.19 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.1696, allocations: 4 kB / 0.5642 GB, free: 14.18 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.1696, allocations: 16 kB / 0.5642 GB, free: 14.17 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.1696, allocations: 8 kB / 0.5642 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004719/0.1701, allocations: 219.8 kB / 0.5644 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00246/0.1726, allocations: 1.586 MB / 0.566 GB, free: 12.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006196/0.1732, allocations: 299.7 kB / 0.5663 GB, free: 11.9 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002986/0.1735, allocations: 93.12 kB / 0.5664 GB, free: 11.79 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.1735, allocations: 8 kB / 0.5664 GB, free: 11.78 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.1736, allocations: 38.5 kB / 0.5664 GB, free: 11.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 1.843e-06/0.1736, allocations: 0 / 0.5664 GB, free: 11.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007391/0.1743, allocations: 277.3 kB / 0.5667 GB, free: 11.46 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.1744, allocations: 188 kB / 0.5668 GB, free: 11.23 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002675/0.1747, allocations: 234.6 kB / 0.5671 GB, free: 10.99 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.1747, allocations: 29.7 kB / 0.5671 GB, free: 10.96 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.1749, allocations: 220.2 kB / 0.5673 GB, free: 10.74 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.175, allocations: 115 kB / 0.5674 GB, free: 10.62 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.1751, allocations: 74.09 kB / 0.5675 GB, free: 10.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1753, allocations: 342.8 kB / 0.5678 GB, free: 10.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.1755, allocations: 80.84 kB / 0.5679 GB, free: 10.12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003381/0.1758, allocations: 261.7 kB / 0.5681 GB, free: 9.789 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005492/0.1764, allocations: 361 kB / 0.5685 GB, free: 9.359 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.1764, allocations: 4 kB / 0.5685 GB, free: 9.355 MB / 430.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000699/0.1771, allocations: 377.1 kB / 0.5689 GB, free: 8.98 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.1771, allocations: 14.02 kB / 0.5689 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.1771, allocations: 8 kB / 0.5689 GB, free: 8.961 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.1771, allocations: 8 kB / 0.5689 GB, free: 8.953 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003816/0.1775, allocations: 103.8 kB / 0.569 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.887e-05/0.1775, allocations: 11.94 kB / 0.569 GB, free: 8.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.1778, allocations: 51.66 kB / 0.569 GB, free: 8.789 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.92e-05/0.1778, allocations: 21.12 kB / 0.5691 GB, free: 8.77 MB / 430.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.0001955/0.178, allocations: 165.5 kB / 0.5692 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.1781, allocations: 35.81 kB / 0.5693 GB, free: 8.562 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002026/0.1783, allocations: 83.39 kB / 0.5693 GB, free: 8.473 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.1783, allocations: 4 kB / 0.5693 GB, free: 8.469 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.1784, allocations: 4.312 kB / 0.5693 GB, free: 8.465 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.1784, allocations: 3.984 kB / 0.5693 GB, free: 8.461 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007605/0.1791, allocations: 353.3 kB / 0.5697 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.1791, allocations: 4 kB / 0.5697 GB, free: 8.062 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004194/0.1795, allocations: 91.88 kB / 0.5698 GB, free: 7.973 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1796, allocations: 0 / 0.5698 GB, free: 7.973 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.027e-05/0.1796, allocations: 11.98 kB / 0.5698 GB, free: 7.961 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.1796, allocations: 4 kB / 0.5698 GB, free: 7.957 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.1796, allocations: 3.938 kB / 0.5698 GB, free: 7.953 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008627/0.1805, allocations: 0.7664 MB / 0.5705 GB, free: 7.164 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.1806, allocations: 104.9 kB / 0.5706 GB, free: 7.043 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.2e-05/0.1806, allocations: 8 kB / 0.5706 GB, free: 7.035 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003206/0.1809, allocations: 8 kB / 0.5707 GB, free: 7.027 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.672e-05/0.181, allocations: 19.91 kB / 0.5707 GB, free: 7.008 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.56e-05/0.181, allocations: 16 kB / 0.5707 GB, free: 6.992 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001714/0.1812, allocations: 173.9 kB / 0.5709 GB, free: 6.824 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1812, allocations: 0 / 0.5709 GB, free: 6.824 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006387/0.1818, allocations: 95.84 kB / 0.5709 GB, free: 6.73 MB / 430.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.0001411/0.182, allocations: 111.1 kB / 0.5711 GB, free: 6.613 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005203/0.1825, allocations: 226.3 kB / 0.5713 GB, free: 6.395 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1825, allocations: 0 / 0.5713 GB, free: 6.395 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.1827, allocations: 91.83 kB / 0.5714 GB, free: 6.305 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009161/0.1836, allocations: 75.28 kB / 0.5714 GB, free: 6.238 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.1858, allocations: 1.339 MB / 0.5727 GB, free: 4.844 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004815/0.1863, allocations: 0.7951 MB / 0.5735 GB, free: 4.023 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.932e-05/0.1864, allocations: 27.44 kB / 0.5735 GB, free: 3.996 MB / 430.1 MB Notification: Performance of SimCode: time 6.02e-07/0.1864, allocations: 0 / 0.5735 GB, free: 3.996 MB / 430.1 MB Notification: Performance of Templates: time 0.007251/0.1937, allocations: 4.142 MB / 0.5776 GB, free: 15.86 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.942446909844875]