Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007536/0.007536, allocations: 100.9 kB / 15.87 MB, free: 6.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001766/0.001767, allocations: 193.8 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 205.1 MB / 222.6 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3903/0.3903, allocations: 43.5 MB / 313.5 MB, free: 8.535 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 63.91 kB / 382 MB, free: 8.723 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1553, allocations: 57.78 MB / 439.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003722/0.1591, allocations: 1.96 MB / 441.8 MB, free: 12.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.1602, allocations: 0.5307 MB / 442.3 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.1603, allocations: 4 kB / 442.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.1606, allocations: 15.86 kB / 442.3 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001336/0.1607, allocations: 39.69 kB / 442.4 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.1609, allocations: 31.97 kB / 442.4 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002269/0.1612, allocations: 139.3 kB / 442.5 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.1614, allocations: 49.97 kB / 442.6 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.1615, allocations: 63.7 kB / 442.6 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001178/0.1616, allocations: 59.77 kB / 442.7 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.587e-05/0.1617, allocations: 12 kB / 442.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.674e-05/0.1617, allocations: 8 kB / 442.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.39e-05/0.1617, allocations: 23.86 kB / 442.7 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.584e-05/0.1618, allocations: 67.66 kB / 442.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.162, allocations: 147.7 kB / 443 MB, free: 11.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.162, allocations: 0 / 443 MB, free: 11.67 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.162, allocations: 0 / 443 MB, free: 11.67 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.162, allocations: 0 / 443 MB, free: 11.67 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006399/0.1627, allocations: 435 kB / 443.4 MB, free: 11.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.1627, allocations: 8.031 kB / 443.4 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.817e-05/0.1628, allocations: 20.73 kB / 443.4 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.163, allocations: 200.1 kB / 443.6 MB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.1631, allocations: 12.38 kB / 443.6 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.958e-05/0.1631, allocations: 12.38 kB / 443.6 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.1634, allocations: 133.7 kB / 443.8 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.1634, allocations: 0 / 443.8 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.1635, allocations: 4 kB / 443.8 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1635, allocations: 11.98 kB / 443.8 MB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002033/0.1637, allocations: 83.94 kB / 443.9 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007292/0.1644, allocations: 472.1 kB / 444.3 MB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002305/0.1647, allocations: 126.3 kB / 444.4 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.1648, allocations: 56.84 kB / 444.5 MB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.1648, allocations: 0 / 444.5 MB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.1649, allocations: 34.56 kB / 444.5 MB, free: 9.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.112e-06/0.1649, allocations: 0 / 444.5 MB, free: 9.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001601/0.1665, allocations: 0.8022 MB / 445.3 MB, free: 9.035 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.1665, allocations: 55.39 kB / 445.4 MB, free: 8.969 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.1667, allocations: 145.4 kB / 445.5 MB, free: 8.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.1667, allocations: 33.7 kB / 445.6 MB, free: 8.781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.1668, allocations: 108.3 kB / 445.7 MB, free: 8.668 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.729e-05/0.1668, allocations: 71 kB / 445.7 MB, free: 8.598 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.042e-05/0.1669, allocations: 37.7 kB / 445.8 MB, free: 8.555 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.167, allocations: 326.8 kB / 446.1 MB, free: 8.227 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.1671, allocations: 43.97 kB / 446.1 MB, free: 8.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.1673, allocations: 83.34 kB / 446.2 MB, free: 8.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.1675, allocations: 131.3 kB / 446.3 MB, free: 7.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1675, allocations: 4 kB / 446.3 MB, free: 7.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003705/0.1679, allocations: 202.2 kB / 446.5 MB, free: 7.738 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.168, allocations: 15.97 kB / 446.6 MB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.168, allocations: 0 / 446.6 MB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002028/0.1682, allocations: 40.83 kB / 446.6 MB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.1684, allocations: 35.92 kB / 446.6 MB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/0.17, allocations: 1.553 MB / 448.2 MB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.415e-05/0.1701, allocations: 4 kB / 448.2 MB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.1701, allocations: 11.94 kB / 448.2 MB, free: 5.945 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001431/0.1702, allocations: 121.8 kB / 448.3 MB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.256e-05/0.1703, allocations: 27.8 kB / 448.3 MB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001205/0.1704, allocations: 21.19 kB / 448.4 MB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1704, allocations: 3.938 kB / 448.4 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.1704, allocations: 0 / 448.4 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.1705, allocations: 0 / 448.4 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007981/0.1713, allocations: 0.5582 MB / 448.9 MB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1713, allocations: 0 / 448.9 MB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001903/0.1715, allocations: 35.97 kB / 449 MB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001142/0.1716, allocations: 32.84 kB / 449 MB, free: 5.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.1716, allocations: 0 / 449 MB, free: 5.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001063/0.1727, allocations: 1.382 MB / 450.4 MB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1727, allocations: 7.906 kB / 450.4 MB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004764/0.1732, allocations: 344.9 kB / 450.7 MB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-05/0.1733, allocations: 89.03 kB / 450.8 MB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.1733, allocations: 8 kB / 450.8 MB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.319e-05/0.1734, allocations: 4 kB / 450.8 MB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.238e-05/0.1734, allocations: 11.98 kB / 450.8 MB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.1735, allocations: 4 kB / 450.8 MB, free: 3.059 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.704e-05/0.1735, allocations: 115.3 kB / 451 MB, free: 2.945 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1736, allocations: 0 / 451 MB, free: 2.945 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003597/0.1739, allocations: 40 kB / 451 MB, free: 2.906 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000144/0.1741, allocations: 103.1 kB / 451.1 MB, free: 2.797 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005514/0.1746, allocations: 258.5 kB / 451.3 MB, free: 2.531 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1746, allocations: 4.062 kB / 451.3 MB, free: 2.527 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002598/0.1749, allocations: 198.1 kB / 451.5 MB, free: 2.324 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004673/0.1754, allocations: 31.16 kB / 451.6 MB, free: 2.301 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009339/0.1763, allocations: 496.7 kB / 452.1 MB, free: 1.789 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.1766, allocations: 0.7207 MB / 452.8 MB, free: 1.043 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.779e-05/0.1767, allocations: 9.438 kB / 452.8 MB, free: 1.031 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.065e-05/0.1768, allocations: 15.44 kB / 452.8 MB, free: 1.016 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1768, allocations: 0 / 452.8 MB, free: 1.016 MB / 382.1 MB Notification: Performance of Templates: time 0.247/0.4238, allocations: 1.511 MB / 454.3 MB, free: 48.07 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches