Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.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.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP") translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000844/0.0008442, allocations: 102.5 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008874/0.0008876, allocations: 184.7 kB / 16.92 MB, free: 6.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.209/2.209, allocations: 205.4 MB / 223.1 MB, free: 5.52 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.5674/0.5674, allocations: 43.57 MB / 315 MB, free: 8.793 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.0005241/0.0005244, allocations: 16 kB / 384.6 MB, free: 7.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1571, allocations: 58.88 MB / 443.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003093/0.1603, allocations: 2.071 MB / 445.5 MB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.162, allocations: 0.9718 MB / 446.5 MB, free: 9.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.1622, allocations: 7.938 kB / 446.5 MB, free: 9.609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003494/0.1626, allocations: 95.52 kB / 446.6 MB, free: 9.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002134/0.1628, allocations: 95.5 kB / 446.7 MB, free: 9.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005656/0.1634, allocations: 239.7 kB / 446.9 MB, free: 9.188 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008289/0.1642, allocations: 0.6861 MB / 447.6 MB, free: 8.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.1644, allocations: 65.31 kB / 447.7 MB, free: 8.434 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004416/0.1649, allocations: 271 kB / 447.9 MB, free: 8.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005015/0.1654, allocations: 314.7 kB / 448.2 MB, free: 7.859 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.512e-05/0.1655, allocations: 32 kB / 448.3 MB, free: 7.828 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.416e-05/0.1656, allocations: 31.94 kB / 448.3 MB, free: 7.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002634/0.1659, allocations: 163.5 kB / 448.5 MB, free: 7.637 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002908/0.1662, allocations: 244.4 kB / 448.7 MB, free: 7.391 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006527/0.1668, allocations: 0.5059 MB / 449.2 MB, free: 6.883 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.1669, allocations: 4 kB / 449.2 MB, free: 6.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1669, allocations: 0 / 449.2 MB, free: 6.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.347e-06/0.1669, allocations: 0 / 449.2 MB, free: 6.879 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002579/0.1695, allocations: 0.9277 MB / 450.1 MB, free: 5.902 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.706e-05/0.1696, allocations: 16.03 kB / 450.2 MB, free: 5.887 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.1698, allocations: 60.38 kB / 450.2 MB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006897/0.1704, allocations: 375.1 kB / 450.6 MB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005099/0.171, allocations: 271.7 kB / 450.8 MB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.1711, allocations: 48.28 kB / 450.9 MB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002501/0.1736, allocations: 0.8712 MB / 451.8 MB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.1737, allocations: 0 / 451.8 MB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-05/0.1737, allocations: 20 kB / 451.8 MB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.023e-05/0.1738, allocations: 8 kB / 451.8 MB, free: 4.133 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004073/0.1779, allocations: 1.329 MB / 453.1 MB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003282/0.1812, allocations: 2.062 MB / 455.2 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3525/0.5337, allocations: 0.8991 MB / 456.1 MB, free: 46.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001711/0.5355, allocations: 0.5474 MB / 456.6 MB, free: 46.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.194e-05/0.5356, allocations: 15.19 kB / 456.6 MB, free: 46.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.5356, allocations: 48 kB / 456.7 MB, free: 46.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 2.705e-06/0.5356, allocations: 0 / 456.7 MB, free: 46.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.08657/0.6222, allocations: 18.24 MB / 474.9 MB, free: 44.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.6223, allocations: 97.27 kB / 475 MB, free: 44.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004245/0.6227, allocations: 380.9 kB / 475.4 MB, free: 44.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001803/0.6229, allocations: 47.8 kB / 475.4 MB, free: 44.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.623, allocations: 228.1 kB / 475.7 MB, free: 44.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003152/0.6233, allocations: 401.7 kB / 476.1 MB, free: 44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002/0.6235, allocations: 97.72 kB / 476.1 MB, free: 43.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.079e-05/0.6236, allocations: 373.8 kB / 476.5 MB, free: 43.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003676/0.6273, allocations: 1.45 MB / 478 MB, free: 43.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004163/0.6315, allocations: 1.609 MB / 479.6 MB, free: 42.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007022/0.6385, allocations: 2.671 MB / 482.2 MB, free: 41.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.6386, allocations: 1 kB / 482.2 MB, free: 41.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007729/0.6463, allocations: 3.063 MB / 485.3 MB, free: 40.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.6463, allocations: 10.66 kB / 485.3 MB, free: 40.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.6464, allocations: 3.156 kB / 485.3 MB, free: 40.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.751e-05/0.6464, allocations: 9.125 kB / 485.3 MB, free: 40.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002586/0.649, allocations: 471 kB / 485.8 MB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.995e-05/0.649, allocations: 9.281 kB / 485.8 MB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001995/0.651, allocations: 277.2 kB / 486.1 MB, free: 40.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.6512, allocations: 45.05 kB / 486.1 MB, free: 40.19 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 10 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.moving[1],integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 148 * 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.0004392/0.6516, allocations: 226.7 kB / 486.3 MB, free: 40 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002004/0.6518, allocations: 65.44 kB / 486.4 MB, free: 39.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000255/0.6521, allocations: 112.2 kB / 486.5 MB, free: 39.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.6521, allocations: 13.12 kB / 486.5 MB, free: 39.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.926e-05/0.6521, allocations: 0 / 486.5 MB, free: 39.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/0.6521, allocations: 7.047 kB / 486.5 MB, free: 39.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/0.6638, allocations: 5.566 MB / 492.1 MB, free: 37.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-05/0.6639, allocations: 21.42 kB / 492.1 MB, free: 37.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/0.6655, allocations: 413.2 kB / 492.5 MB, free: 37.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.128e-05/0.6656, allocations: 28.97 kB / 492.5 MB, free: 37.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.47e-05/0.6657, allocations: 46.19 kB / 492.6 MB, free: 37.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-05/0.6657, allocations: 44.52 kB / 492.6 MB, free: 37.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.117e-05/0.6657, allocations: 32.31 kB / 492.7 MB, free: 37.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008408/0.6741, allocations: 3.416 MB / 496.1 MB, free: 35.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005319/0.6747, allocations: 245 kB / 496.3 MB, free: 35.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.6749, allocations: 51.19 kB / 496.4 MB, free: 35.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/0.6763, allocations: 256.6 kB / 496.6 MB, free: 35.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000454/0.6767, allocations: 214.7 kB / 496.8 MB, free: 35.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.578e-05/0.6768, allocations: 57.56 kB / 496.9 MB, free: 35.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003073/0.6772, allocations: 262.9 kB / 497.1 MB, free: 35.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6772, allocations: 1.125 kB / 497.1 MB, free: 35.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001233/0.6784, allocations: 229.5 kB / 497.4 MB, free: 35 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 6 (kinematicPTP2b.moving[1],kinematicPTP1b.moving[1],kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 120 * 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.0002687/0.6787, allocations: 174.5 kB / 497.5 MB, free: 34.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006583/0.6853, allocations: 2.567 MB / 0.4884 GB, free: 33.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.379e-05/0.6853, allocations: 2.625 kB / 0.4884 GB, free: 33.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003417/0.6887, allocations: 1.18 MB / 0.4895 GB, free: 33.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002039/0.6908, allocations: 171 kB / 0.4897 GB, free: 33.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00307/0.6939, allocations: 2.216 MB / 0.4919 GB, free: 31.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002864/0.6942, allocations: 0.9285 MB / 0.4928 GB, free: 30.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001347/0.6955, allocations: 195.7 kB / 0.493 GB, free: 30.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000528/0.6961, allocations: 67.36 kB / 0.493 GB, free: 30.01 MB / 382.1 MB Notification: Performance of SimCode: time 6.12e-07/0.6961, allocations: 0 / 0.493 GB, free: 30.01 MB / 382.1 MB Notification: Performance of Templates: time 0.01687/0.713, allocations: 15.07 MB / 0.5077 GB, free: 14.98 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches