Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 177.6 kB / 17.41 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.233/1.233, allocations: 205.4 MB / 223.6 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007589/0.0007589, allocations: 78.38 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.286/0.286, allocations: 43.55 MB / 363.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003643, allocations: 12 kB / 432.6 MB, free: 5.895 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1057, allocations: 58.85 MB / 491.4 MB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2835/0.3892, allocations: 88.25 MB / 0.5661 GB, free: 14.18 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.3895, allocations: 63.97 kB / 0.5662 GB, free: 14.12 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03379/0.4233, allocations: 11.76 MB / 0.5776 GB, free: 2.379 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.4233, allocations: 3.938 kB / 0.5776 GB, free: 2.375 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.961e-05/0.4233, allocations: 12 kB / 0.5777 GB, free: 2.363 MB / 394.7 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.002149/0.4255, allocations: 0.9391 MB / 0.5786 GB, free: 1.375 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.4256, allocations: 12.03 kB / 0.5786 GB, free: 1.363 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001807/0.4257, allocations: 64.38 kB / 0.5786 GB, free: 1.301 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005942/0.4263, allocations: 367.2 kB / 0.579 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003596/0.4267, allocations: 279.7 kB / 0.5793 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.4268, allocations: 44.28 kB / 0.5793 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002031/0.4289, allocations: 0.8755 MB / 0.5802 GB, free: 15.63 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.4289, allocations: 7.938 kB / 0.5802 GB, free: 15.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.035e-05/0.429, allocations: 19.98 kB / 0.5802 GB, free: 15.61 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.429, allocations: 16 kB / 0.5802 GB, free: 15.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003409/0.4324, allocations: 1.337 MB / 0.5815 GB, free: 14.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002809/0.4352, allocations: 2.08 MB / 0.5835 GB, free: 12.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002588/0.4378, allocations: 0.8791 MB / 0.5844 GB, free: 11.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/0.4393, allocations: 0.5532 MB / 0.5849 GB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.71e-05/0.4394, allocations: 12.55 kB / 0.5849 GB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.4395, allocations: 35.69 kB / 0.585 GB, free: 10.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 4.659e-06/0.4395, allocations: 8.656 kB / 0.585 GB, free: 10.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.08069/0.5202, allocations: 18.29 MB / 0.6028 GB, free: 8.137 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.957e-05/0.5203, allocations: 94.23 kB / 0.6029 GB, free: 8.023 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005672/0.5209, allocations: 401.5 kB / 0.6033 GB, free: 7.625 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001763/0.521, allocations: 45.7 kB / 0.6034 GB, free: 7.574 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.5212, allocations: 225 kB / 0.6036 GB, free: 7.348 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003814/0.5216, allocations: 402.1 kB / 0.604 GB, free: 6.949 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.5218, allocations: 25.5 kB / 0.604 GB, free: 6.926 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.5219, allocations: 374.7 kB / 0.6043 GB, free: 6.551 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003406/0.5253, allocations: 1.463 MB / 0.6058 GB, free: 5.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00351/0.5289, allocations: 1.618 MB / 0.6074 GB, free: 3.426 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006502/0.5354, allocations: 2.678 MB / 0.61 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.5354, allocations: 4 kB / 0.61 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.007442/0.5429, allocations: 3.072 MB / 0.613 GB, free: 13.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.5429, allocations: 8.062 kB / 0.613 GB, free: 13.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.5429, allocations: 4 kB / 0.613 GB, free: 13.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.543, allocations: 11.98 kB / 0.613 GB, free: 13.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002625/0.5456, allocations: 467.3 kB / 0.6134 GB, free: 13.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.809e-05/0.5456, allocations: 11.94 kB / 0.6135 GB, free: 13.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.5476, allocations: 283.6 kB / 0.6137 GB, free: 12.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001797/0.5478, allocations: 47.97 kB / 0.6138 GB, free: 12.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,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 (150): * Single equations (assignments): 150 * 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.0004998/0.5483, allocations: 233.8 kB / 0.614 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002442/0.5485, allocations: 63.25 kB / 0.6141 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002678/0.5488, allocations: 115.3 kB / 0.6142 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.5488, allocations: 12 kB / 0.6142 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.5488, allocations: 0 / 0.6142 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.5489, allocations: 7.922 kB / 0.6142 GB, free: 12.37 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/0.5603, allocations: 5.594 MB / 0.6196 GB, free: 6.434 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.848e-05/0.5604, allocations: 20 kB / 0.6197 GB, free: 6.414 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/0.5618, allocations: 416.2 kB / 0.6201 GB, free: 6.008 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.343e-05/0.5618, allocations: 28 kB / 0.6201 GB, free: 5.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.915e-05/0.5619, allocations: 48 kB / 0.6201 GB, free: 5.934 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.848e-05/0.5619, allocations: 43.8 kB / 0.6202 GB, free: 5.891 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.979e-05/0.562, allocations: 27.88 kB / 0.6202 GB, free: 5.863 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006849/0.5688, allocations: 3.459 MB / 0.6236 GB, free: 2.113 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004299/0.5693, allocations: 244.3 kB / 0.6238 GB, free: 1.855 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.5694, allocations: 55.98 kB / 0.6239 GB, free: 1.801 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.5707, allocations: 251.8 kB / 0.6241 GB, free: 1.555 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004314/0.5712, allocations: 239.1 kB / 0.6243 GB, free: 1.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.5713, allocations: 56 kB / 0.6244 GB, free: 1.266 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003343/0.5716, allocations: 275.1 kB / 0.6246 GB, free: 0.9961 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5716, allocations: 0 / 0.6246 GB, free: 0.9961 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001039/0.5727, allocations: 240 kB / 0.6249 GB, free: 0.7617 MB / 442.7 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: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,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 (122): * Single equations (assignments): 122 * 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.0002557/0.573, allocations: 178.6 kB / 0.625 GB, free: 0.5781 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006016/0.579, allocations: 2.586 MB / 0.6276 GB, free: 14 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.579, allocations: 0 / 0.6276 GB, free: 14 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003247/0.5823, allocations: 1.192 MB / 0.6287 GB, free: 12.81 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00196/0.5842, allocations: 157.4 kB / 0.6289 GB, free: 12.66 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003809/0.5881, allocations: 2.226 MB / 0.6311 GB, free: 10.11 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005558/0.5886, allocations: 0.9243 MB / 0.632 GB, free: 9.152 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007328/0.5894, allocations: 79.41 kB / 0.632 GB, free: 9.074 MB / 458.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5894, allocations: 0 / 0.632 GB, free: 9.074 MB / 458.7 MB Notification: Performance of Templates: time 0.01989/0.6093, allocations: 14.16 MB / 0.6459 GB, free: 10.91 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches