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.001095/0.001095, allocations: 109 kB / 17.21 MB, free: 6.293 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.001258/0.001258, allocations: 194 kB / 18.12 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 241.8 MB, free: 15.36 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.2295/0.2295, allocations: 44.19 MB / 336.1 MB, free: 2.988 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 64.64 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1573, allocations: 60.83 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003711/0.161, allocations: 1.952 MB / 470.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008594/0.1619, allocations: 0.4987 MB / 471 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.162, allocations: 0 / 471 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.1622, allocations: 15.86 kB / 471 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.503e-05/0.1623, allocations: 35.75 kB / 471 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.1625, allocations: 27.92 kB / 471 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001847/0.1627, allocations: 147.3 kB / 471.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.1629, allocations: 45.97 kB / 471.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.163, allocations: 55.78 kB / 471.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001115/0.1631, allocations: 63.75 kB / 471.3 MB, free: 12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.851e-05/0.1631, allocations: 11.94 kB / 471.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.515e-05/0.1632, allocations: 12 kB / 471.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.368e-05/0.1632, allocations: 23.86 kB / 471.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.542e-05/0.1633, allocations: 71.61 kB / 471.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001748/0.1635, allocations: 139.7 kB / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1635, allocations: 0 / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1635, allocations: 0 / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1635, allocations: 0 / 471.6 MB, free: 11.75 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.0006617/0.1642, allocations: 431.1 kB / 472 MB, free: 11.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.1642, allocations: 16.02 kB / 472 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.01e-05/0.1643, allocations: 20.75 kB / 472.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.1645, allocations: 200.1 kB / 472.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.1645, allocations: 12.38 kB / 472.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.52e-05/0.1646, allocations: 16.36 kB / 472.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.1649, allocations: 126.3 kB / 472.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.1649, allocations: 7.906 kB / 472.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.872e-05/0.1649, allocations: 7.984 kB / 472.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.1649, allocations: 4 kB / 472.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.1651, allocations: 83.89 kB / 472.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007771/0.1659, allocations: 468.2 kB / 473 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002678/0.1662, allocations: 130.4 kB / 473.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.1663, allocations: 52.84 kB / 473.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.1664, allocations: 4 kB / 473.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.1664, allocations: 30.56 kB / 473.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.302e-06/0.1664, allocations: 0 / 473.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001624/0.168, allocations: 0.8052 MB / 474 MB, free: 9.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.1681, allocations: 55.41 kB / 474 MB, free: 9.043 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001673/0.1683, allocations: 136.6 kB / 474.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.1683, allocations: 37.64 kB / 474.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.929e-05/0.1684, allocations: 108.3 kB / 474.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.501e-05/0.1684, allocations: 71.02 kB / 474.4 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.83e-05/0.1685, allocations: 33.7 kB / 474.4 MB, free: 8.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1687, allocations: 330.8 kB / 474.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.502e-05/0.1688, allocations: 39.97 kB / 474.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.1689, allocations: 79.34 kB / 474.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002141/0.1691, allocations: 143.2 kB / 475 MB, free: 8.027 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.1691, allocations: 0 / 475 MB, free: 8.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003796/0.1695, allocations: 206.2 kB / 475.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1695, allocations: 7.938 kB / 475.2 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.1696, allocations: 4 kB / 475.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002073/0.1698, allocations: 44.86 kB / 475.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.1699, allocations: 31.98 kB / 475.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.1715, allocations: 1.561 MB / 476.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.819e-05/0.1716, allocations: 8.031 kB / 476.9 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.1716, allocations: 7.938 kB / 476.9 MB, free: 6.02 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.0001276/0.1718, allocations: 125.8 kB / 477 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.1718, allocations: 19.8 kB / 477 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.963e-05/0.1718, allocations: 17.19 kB / 477 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1719, allocations: 12 kB / 477 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.1719, allocations: 0 / 477 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1719, allocations: 0 / 477 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007664/0.1727, allocations: 0.5535 MB / 477.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1727, allocations: 0 / 477.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001793/0.1729, allocations: 39.91 kB / 477.6 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001071/0.173, allocations: 28.84 kB / 477.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.173, allocations: 4 kB / 477.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001111/0.1741, allocations: 1.382 MB / 479 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1741, allocations: 3.938 kB / 479 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005363/0.1747, allocations: 341 kB / 479.4 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.881e-05/0.1747, allocations: 92.94 kB / 479.5 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.1748, allocations: 4 kB / 479.5 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.477e-05/0.1749, allocations: 4 kB / 479.5 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.635e-05/0.1749, allocations: 15.98 kB / 479.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.1749, allocations: 7.984 kB / 479.5 MB, free: 3.137 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.097e-05/0.175, allocations: 105.8 kB / 479.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.175, allocations: 0 / 479.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003187/0.1754, allocations: 44.06 kB / 479.6 MB, free: 2.992 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.0001114/0.1755, allocations: 103.2 kB / 479.7 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004928/0.176, allocations: 258.4 kB / 480 MB, free: 2.613 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.176, allocations: 0 / 480 MB, free: 2.613 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002698/0.1763, allocations: 194.7 kB / 480.2 MB, free: 2.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000436/0.1767, allocations: 23.92 kB / 480.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009388/0.1777, allocations: 496.2 kB / 480.7 MB, free: 1.871 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003601/0.178, allocations: 0.7284 MB / 481.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.975e-05/0.1781, allocations: 9.438 kB / 481.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.026e-05/0.1781, allocations: 15.42 kB / 481.4 MB, free: 1.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1782, allocations: 4 kB / 481.4 MB, free: 1.086 MB / 350.1 MB Notification: Performance of Templates: time 0.004439/0.1826, allocations: 1.502 MB / 483 MB, free: 15.59 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/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