Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_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.001833/0.001833, allocations: 105.4 kB / 17.85 MB, free: 5.656 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.002075/0.002075, allocations: 197.9 kB / 18.77 MB, free: 4.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.205/2.205, allocations: 222.9 MB / 242.4 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3663/0.3663, allocations: 44.19 MB / 336.8 MB, free: 3.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002228/0.002228, allocations: 68.59 kB / 408.3 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.1588, allocations: 60.83 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004865/0.1637, allocations: 1.955 MB / 471.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.1649, allocations: 0.491 MB / 471.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.1651, allocations: 4 kB / 471.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.1653, allocations: 15.86 kB / 471.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.1655, allocations: 43.69 kB / 471.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.1657, allocations: 23.98 kB / 471.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002551/0.166, allocations: 139.3 kB / 471.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.1662, allocations: 53.97 kB / 471.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.1664, allocations: 59.72 kB / 472 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.1665, allocations: 67.69 kB / 472 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.266e-05/0.1666, allocations: 8 kB / 472 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.911e-05/0.1666, allocations: 8 kB / 472 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.188e-05/0.1667, allocations: 19.92 kB / 472.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.1668, allocations: 59.67 kB / 472.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001968/0.167, allocations: 116 kB / 472.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.167, allocations: 0 / 472.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.167, allocations: 0 / 472.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.1671, allocations: 0 / 472.2 MB, free: 11.79 MB / 350.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.0007786/0.1678, allocations: 437.8 kB / 472.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.1679, allocations: 11.97 kB / 472.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.217e-05/0.168, allocations: 16.75 kB / 472.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.1683, allocations: 196.2 kB / 472.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.1683, allocations: 8.375 kB / 472.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.579e-05/0.1684, allocations: 20.36 kB / 472.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004003/0.1688, allocations: 138.2 kB / 473 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.1688, allocations: 7.906 kB / 473 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.371e-05/0.1689, allocations: 4 kB / 473 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.1689, allocations: 7.938 kB / 473.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003117/0.1692, allocations: 75.95 kB / 473.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.1702, allocations: 480.2 kB / 473.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003391/0.1706, allocations: 114.4 kB / 473.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.1708, allocations: 64.83 kB / 473.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.1708, allocations: 3.938 kB / 473.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.1709, allocations: 30.56 kB / 473.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.844e-06/0.1709, allocations: 4 kB / 473.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.002204/0.1731, allocations: 0.8088 MB / 474.6 MB, free: 9.137 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.1732, allocations: 55.41 kB / 474.7 MB, free: 9.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.1733, allocations: 140.6 kB / 474.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.1734, allocations: 25.7 kB / 474.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.063e-05/0.1735, allocations: 112.3 kB / 474.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.619e-05/0.1736, allocations: 67 kB / 475 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.078e-05/0.1737, allocations: 37.7 kB / 475 MB, free: 8.672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1738, allocations: 322.8 kB / 475.4 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.174, allocations: 43.98 kB / 475.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.1742, allocations: 80.84 kB / 475.5 MB, free: 8.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003543/0.1746, allocations: 131.3 kB / 475.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1746, allocations: 4 kB / 475.6 MB, free: 8.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006164/0.1752, allocations: 210.2 kB / 475.8 MB, free: 7.855 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.1752, allocations: 11.94 kB / 475.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1753, allocations: 0 / 475.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002477/0.1755, allocations: 40.83 kB / 475.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000267/0.1758, allocations: 35.92 kB / 475.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001991/0.1778, allocations: 1.557 MB / 477.5 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.178, allocations: 7.984 kB / 477.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.178, allocations: 11.94 kB / 477.5 MB, free: 6.059 MB / 350.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.0001575/0.1782, allocations: 129.8 kB / 477.6 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.486e-05/0.1782, allocations: 15.81 kB / 477.6 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.327e-05/0.1783, allocations: 13.19 kB / 477.6 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1783, allocations: 4 kB / 477.6 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/0.1783, allocations: 4.188 kB / 477.6 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.1784, allocations: 3.984 kB / 477.7 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.1796, allocations: 0.5566 MB / 478.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1796, allocations: 0 / 478.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002824/0.1799, allocations: 35.98 kB / 478.2 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001646/0.1801, allocations: 28.84 kB / 478.3 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.1801, allocations: 7.984 kB / 478.3 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001575/0.1817, allocations: 1.378 MB / 479.7 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.1817, allocations: 3.938 kB / 479.7 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007911/0.1825, allocations: 349 kB / 480 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.777e-05/0.1826, allocations: 88.95 kB / 480.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.187e-05/0.1826, allocations: 4 kB / 480.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.1828, allocations: 4 kB / 480.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.742e-05/0.1829, allocations: 24.03 kB / 480.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.1829, allocations: 4 kB / 480.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000111/0.183, allocations: 105.5 kB / 480.2 MB, free: 3.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1831, allocations: 3.938 kB / 480.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006002/0.1837, allocations: 44 kB / 480.3 MB, free: 3.023 MB / 350.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.000136/0.1838, allocations: 103.1 kB / 480.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007069/0.1845, allocations: 258.5 kB / 480.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1846, allocations: 0 / 480.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003897/0.185, allocations: 194.6 kB / 480.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005738/0.1855, allocations: 23.94 kB / 480.8 MB, free: 2.418 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.1867, allocations: 0.5098 MB / 481.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.1871, allocations: 0.7206 MB / 482.1 MB, free: 1.121 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.817e-05/0.1872, allocations: 15.44 kB / 482.1 MB, free: 1.105 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1872, allocations: 0 / 482.1 MB, free: 1.105 MB / 350.1 MB Notification: Performance of Templates: time 0.006277/0.1935, allocations: 2.402 MB / 484.5 MB, free: 14.7 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches