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.0008646/0.0008688, allocations: 171.2 kB / 16.72 MB, free: 5.051 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.201/1.201, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.000713/0.000713, allocations: 89.42 kB / 271.2 MB, free: 8.242 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.2844/0.2844, allocations: 43.56 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003259/0.0003259, allocations: 12 kB / 432 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/0.08934, allocations: 58.85 MB / 490.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002134/0.09151, allocations: 1.982 MB / 492.8 MB, free: 8.902 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.09287, allocations: 0.9642 MB / 493.8 MB, free: 7.93 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.093, allocations: 11.88 kB / 493.8 MB, free: 7.918 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00028/0.09329, allocations: 91.5 kB / 493.9 MB, free: 7.828 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.09348, allocations: 71.59 kB / 493.9 MB, free: 7.758 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004968/0.09398, allocations: 223.6 kB / 494.2 MB, free: 7.539 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000567/0.09456, allocations: 0.6275 MB / 494.8 MB, free: 6.91 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.0947, allocations: 73.03 kB / 494.9 MB, free: 6.836 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002684/0.09498, allocations: 259.1 kB / 495.1 MB, free: 6.582 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003065/0.09529, allocations: 298.9 kB / 495.4 MB, free: 6.289 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.869e-05/0.09537, allocations: 28 kB / 495.4 MB, free: 6.262 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.488e-05/0.09544, allocations: 32 kB / 495.5 MB, free: 6.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.0956, allocations: 151.5 kB / 495.6 MB, free: 6.082 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.0958, allocations: 240.5 kB / 495.8 MB, free: 5.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003048/0.09611, allocations: 387.3 kB / 496.2 MB, free: 5.461 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.09612, allocations: 0 / 496.2 MB, free: 5.461 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.09613, allocations: 0 / 496.2 MB, free: 5.461 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.09614, allocations: 0 / 496.2 MB, free: 5.461 MB / 378.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.001946/0.09809, allocations: 0.9277 MB / 497.1 MB, free: 4.484 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.09814, allocations: 8.031 kB / 497.2 MB, free: 4.477 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.09826, allocations: 60.38 kB / 497.2 MB, free: 4.418 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004588/0.09872, allocations: 371.2 kB / 497.6 MB, free: 4.016 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003339/0.09907, allocations: 279.6 kB / 497.8 MB, free: 3.707 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.215e-05/0.09916, allocations: 48.28 kB / 497.9 MB, free: 3.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001913/0.1011, allocations: 0.8712 MB / 498.8 MB, free: 2.746 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.1011, allocations: 4 kB / 498.8 MB, free: 2.742 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.752e-05/0.1012, allocations: 16 kB / 498.8 MB, free: 2.727 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.1012, allocations: 12 kB / 498.8 MB, free: 2.715 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003328/0.1045, allocations: 1.321 MB / 0.4884 GB, free: 1.395 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1533/0.2578, allocations: 2.057 MB / 0.4904 GB, free: 42.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002833/0.2607, allocations: 0.8937 MB / 0.4913 GB, free: 42.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/0.2621, allocations: 0.5509 MB / 0.4918 GB, free: 42.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001018/0.2622, allocations: 16.38 kB / 0.4918 GB, free: 42.28 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.2622, allocations: 40.64 kB / 0.4919 GB, free: 42.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=64): time 2.675e-06/0.2622, allocations: 1.094 kB / 0.4919 GB, free: 42.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=120): time 0.07985/0.3421, allocations: 18.24 MB / 0.5097 GB, free: 39.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.3422, allocations: 91.39 kB / 0.5098 GB, free: 39.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/0.3425, allocations: 378.8 kB / 0.5101 GB, free: 39.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001409/0.3427, allocations: 48.95 kB / 0.5102 GB, free: 39.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.86e-05/0.3428, allocations: 221.6 kB / 0.5104 GB, free: 39.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002837/0.3431, allocations: 399.6 kB / 0.5108 GB, free: 38.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.3432, allocations: 29.17 kB / 0.5108 GB, free: 38.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.533e-05/0.3433, allocations: 371.9 kB / 0.5112 GB, free: 38.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003089/0.3464, allocations: 1.447 MB / 0.5126 GB, free: 37.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003149/0.3496, allocations: 1.606 MB / 0.5141 GB, free: 37.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005663/0.3552, allocations: 2.661 MB / 0.5167 GB, free: 36.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.3553, allocations: 0 / 0.5167 GB, free: 36.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00661/0.3619, allocations: 3.051 MB / 0.5197 GB, free: 35.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.3619, allocations: 5.406 kB / 0.5197 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.362, allocations: 9.938 kB / 0.5197 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.024e-05/0.362, allocations: 7.156 kB / 0.5197 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002605/0.3646, allocations: 471.5 kB / 0.5202 GB, free: 35.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.172e-05/0.3646, allocations: 16 kB / 0.5202 GB, free: 35.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/0.3665, allocations: 278.1 kB / 0.5205 GB, free: 35.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000168/0.3667, allocations: 45 kB / 0.5205 GB, free: 35.06 MB / 378.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: 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.0004323/0.3671, allocations: 227.5 kB / 0.5207 GB, free: 34.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002012/0.3673, allocations: 65.19 kB / 0.5208 GB, free: 34.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002228/0.3676, allocations: 114.1 kB / 0.5209 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.3676, allocations: 14.5 kB / 0.5209 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.534e-05/0.3676, allocations: 0 / 0.5209 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.3676, allocations: 8.203 kB / 0.5209 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01109/0.3787, allocations: 5.543 MB / 0.5263 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.866e-05/0.3788, allocations: 21.58 kB / 0.5264 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/0.3803, allocations: 413.6 kB / 0.5267 GB, free: 32.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.783e-05/0.3803, allocations: 27.17 kB / 0.5268 GB, free: 32.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.3804, allocations: 48.12 kB / 0.5268 GB, free: 32.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-05/0.3805, allocations: 39.06 kB / 0.5269 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.1e-05/0.3805, allocations: 39.88 kB / 0.5269 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006855/0.3874, allocations: 3.409 MB / 0.5302 GB, free: 30.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004129/0.3878, allocations: 240.7 kB / 0.5305 GB, free: 30.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.388, allocations: 50.83 kB / 0.5305 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/0.3892, allocations: 253.2 kB / 0.5307 GB, free: 30.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004423/0.3897, allocations: 239.4 kB / 0.531 GB, free: 30.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.3898, allocations: 56.97 kB / 0.531 GB, free: 30.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002827/0.3901, allocations: 260.3 kB / 0.5313 GB, free: 29.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3901, allocations: 1.375 kB / 0.5313 GB, free: 29.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001018/0.3911, allocations: 229.9 kB / 0.5315 GB, free: 29.88 MB / 378.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: 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.0001953/0.3913, allocations: 175.3 kB / 0.5317 GB, free: 29.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005895/0.3972, allocations: 2.557 MB / 0.5342 GB, free: 28.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/0.3973, allocations: 3.5 kB / 0.5342 GB, free: 28.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003063/0.4003, allocations: 1.174 MB / 0.5353 GB, free: 28.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001958/0.4023, allocations: 169 kB / 0.5355 GB, free: 28.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003154/0.4055, allocations: 2.202 MB / 0.5376 GB, free: 26.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.4058, allocations: 0.9275 MB / 0.5385 GB, free: 25.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00077/0.4066, allocations: 79.41 kB / 0.5386 GB, free: 25.39 MB / 378.7 MB Notification: Performance of SimCode: time 6.12e-07/0.4066, allocations: 0 / 0.5386 GB, free: 25.39 MB / 378.7 MB Notification: Performance of Templates: time 0.01597/0.4226, allocations: 14.17 MB / 0.5524 GB, free: 11.25 MB / 378.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/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_cpp_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches