Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 96.92 kB / 16.99 MB, free: 5.941 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.001301/0.001301, allocations: 181.5 kB / 17.87 MB, free: 5.609 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.544/1.544, allocations: 223.2 MB / 241.8 MB, free: 14.63 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.2123/0.2123, allocations: 44.22 MB / 337.1 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003673/0.0003671, allocations: 15.05 kB / 409.5 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1478, allocations: 61.92 MB / 471.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002471/0.1503, allocations: 1.963 MB / 473.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.1518, allocations: 0.9013 MB / 474.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.152, allocations: 7.938 kB / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002979/0.1523, allocations: 87.45 kB / 474.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.1525, allocations: 91.72 kB / 474.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005232/0.153, allocations: 215.6 kB / 474.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005046/0.1535, allocations: 431.2 kB / 475.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.1537, allocations: 65.17 kB / 475.2 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00029/0.154, allocations: 259.2 kB / 475.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003479/0.1544, allocations: 294.9 kB / 475.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.969e-05/0.1544, allocations: 32 kB / 475.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.509e-05/0.1545, allocations: 28 kB / 475.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001607/0.1547, allocations: 159.5 kB / 475.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.618e-05/0.1548, allocations: 93.45 kB / 476 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003455/0.1551, allocations: 379.3 kB / 476.4 MB, free: 8.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1551, allocations: 0 / 476.4 MB, free: 8.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1551, allocations: 0 / 476.4 MB, free: 8.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1552, allocations: 4 kB / 476.4 MB, free: 8.758 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002176/0.1573, allocations: 0.9237 MB / 477.3 MB, free: 7.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1574, allocations: 8.562 kB / 477.3 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.1575, allocations: 67.42 kB / 477.4 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005304/0.1581, allocations: 369.9 kB / 477.8 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003642/0.1584, allocations: 275.1 kB / 478 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.038e-05/0.1585, allocations: 51.91 kB / 478.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002013/0.1605, allocations: 0.8515 MB / 478.9 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.1606, allocations: 3.984 kB / 478.9 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.989e-05/0.1606, allocations: 24 kB / 479 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.1607, allocations: 8 kB / 479 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003646/0.1643, allocations: 1.325 MB / 480.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002955/0.1673, allocations: 2.081 MB / 482.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00302/0.1703, allocations: 0.895 MB / 483.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.294e-05/0.1704, allocations: 4 kB / 483.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/0.1704, allocations: 46.48 kB / 483.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 2.084e-06/0.1705, allocations: 4 kB / 483.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.08899/0.2595, allocations: 18.21 MB / 0.4898 GB, free: 15.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.939e-05/0.2596, allocations: 94.17 kB / 0.4899 GB, free: 15.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005816/0.2602, allocations: 389.4 kB / 0.4902 GB, free: 14.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000189/0.2604, allocations: 45.64 kB / 0.4903 GB, free: 14.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.2606, allocations: 229.1 kB / 0.4905 GB, free: 14.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004434/0.261, allocations: 398.2 kB / 0.4909 GB, free: 13.99 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.2612, allocations: 20 kB / 0.4909 GB, free: 13.97 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.2613, allocations: 374.8 kB / 0.4913 GB, free: 13.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003865/0.2652, allocations: 1.447 MB / 0.4927 GB, free: 12.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003905/0.2691, allocations: 1.599 MB / 0.4942 GB, free: 10.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004229/0.2734, allocations: 1.308 MB / 0.4955 GB, free: 9.199 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.924e-06/0.2734, allocations: 0 / 0.4955 GB, free: 9.199 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.009003/0.2824, allocations: 3.053 MB / 0.4985 GB, free: 6.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.2825, allocations: 8 kB / 0.4985 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.2825, allocations: 15.89 kB / 0.4985 GB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.972e-05/0.2826, allocations: 8.25 kB / 0.4985 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002799/0.2854, allocations: 471.3 kB / 0.499 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.103e-05/0.2854, allocations: 8 kB / 0.499 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002073/0.2875, allocations: 279.7 kB / 0.4993 GB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001413/0.2876, allocations: 39.98 kB / 0.4993 GB, free: 5.324 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.moving[1],kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.noWphase,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004929/0.2881, allocations: 229.5 kB / 0.4995 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002156/0.2884, allocations: 71.16 kB / 0.4996 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002293/0.2886, allocations: 108.7 kB / 0.4997 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.2886, allocations: 23.94 kB / 0.4997 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.672e-05/0.2886, allocations: 3.984 kB / 0.4997 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.2887, allocations: 3.984 kB / 0.4997 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2794/0.568, allocations: 5.539 MB / 0.5051 GB, free: 49.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.681e-05/0.5681, allocations: 20.5 kB / 0.5051 GB, free: 49.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001698/0.5698, allocations: 411.5 kB / 0.5055 GB, free: 49.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.92e-05/0.5698, allocations: 29.72 kB / 0.5056 GB, free: 49.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.391e-05/0.5699, allocations: 49.84 kB / 0.5056 GB, free: 49.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.814e-05/0.57, allocations: 47.48 kB / 0.5057 GB, free: 49.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.069e-05/0.57, allocations: 31.41 kB / 0.5057 GB, free: 49.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007839/0.5778, allocations: 4.503 MB / 0.5101 GB, free: 46.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004206/0.5783, allocations: 238.7 kB / 0.5103 GB, free: 46.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000136/0.5784, allocations: 53.3 kB / 0.5104 GB, free: 46.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001416/0.5799, allocations: 253 kB / 0.5106 GB, free: 46.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004226/0.5803, allocations: 229.9 kB / 0.5108 GB, free: 46.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.559e-05/0.5804, allocations: 57.28 kB / 0.5109 GB, free: 46.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002899/0.5807, allocations: 264.8 kB / 0.5111 GB, free: 46.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5807, allocations: 0 / 0.5111 GB, free: 46.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001009/0.5817, allocations: 231.3 kB / 0.5113 GB, free: 46.45 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002029/0.5819, allocations: 171.5 kB / 0.5115 GB, free: 46.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006319/0.5882, allocations: 2.555 MB / 0.514 GB, free: 45.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.444e-05/0.5883, allocations: 3.031 kB / 0.514 GB, free: 45.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0037/0.592, allocations: 1.171 MB / 0.5152 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.593, allocations: 135.9 kB / 0.5153 GB, free: 45.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004186/0.5972, allocations: 2.146 MB / 0.5174 GB, free: 43.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007505/0.598, allocations: 0.943 MB / 0.5183 GB, free: 42.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001481/0.5995, allocations: 199 kB / 0.5185 GB, free: 42.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005418/0.6001, allocations: 65.2 kB / 0.5186 GB, free: 42.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.6001, allocations: 0 / 0.5186 GB, free: 42.8 MB / 382.1 MB Notification: Performance of Templates: time 0.02279/0.6229, allocations: 14.62 MB / 0.5328 GB, free: 33.12 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches