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.001164/0.001164, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.0009656/0.0009657, allocations: 183.8 kB / 18.71 MB, free: 4.332 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.238/1.238, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.184/0.184, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 59.91 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3008, allocations: 60.81 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.00296/0.3038, allocations: 2.411 MB / 0.5212 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001459/0.3053, allocations: 0.935 MB / 0.5222 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002749/0.3055, allocations: 9.344 kB / 0.5222 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003453/0.3059, allocations: 123.4 kB / 0.5223 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002807/0.3062, allocations: 97.67 kB / 0.5224 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007182/0.3069, allocations: 288 kB / 0.5227 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008501/0.3078, allocations: 0.7193 MB / 0.5234 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.308, allocations: 72.42 kB / 0.5234 GB, free: 0.625 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000436/0.3084, allocations: 304.8 kB / 0.5237 GB, free: 500 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004881/0.3089, allocations: 331 kB / 0.524 GB, free: 356 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001588/0.3091, allocations: 60 kB / 0.5241 GB, free: 356 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.3092, allocations: 60.53 kB / 0.5241 GB, free: 356 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.3094, allocations: 195.4 kB / 0.5243 GB, free: 252 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002332/0.3096, allocations: 239.9 kB / 0.5246 GB, free: 88 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00063/0.3103, allocations: 0.5648 MB / 0.5251 GB, free: 15.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.3103, allocations: 0 / 0.5251 GB, free: 15.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3103, allocations: 0 / 0.5251 GB, free: 15.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.3103, allocations: 0 / 0.5251 GB, free: 15.76 MB / 398.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.00223/0.3125, allocations: 0.9533 MB / 0.526 GB, free: 15.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.3126, allocations: 9.625 kB / 0.526 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.3127, allocations: 66.48 kB / 0.5261 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000504/0.3132, allocations: 382.7 kB / 0.5265 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003308/0.3136, allocations: 270.7 kB / 0.5267 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.015e-05/0.3137, allocations: 42.97 kB / 0.5268 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.3156, allocations: 0.8092 MB / 0.5276 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.939e-05/0.3157, allocations: 1.375 kB / 0.5276 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.948e-05/0.3157, allocations: 16.12 kB / 0.5276 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.3158, allocations: 11 kB / 0.5276 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003378/0.3191, allocations: 1.201 MB / 0.5288 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002596/0.3217, allocations: 2.032 MB / 0.5308 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002894/0.3247, allocations: 0.8223 MB / 0.5316 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.3261, allocations: 494.8 kB / 0.532 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.014e-05/0.3262, allocations: 9.562 kB / 0.532 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.3262, allocations: 43.09 kB / 0.5321 GB, free: 10.87 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 1.783e-06/0.3262, allocations: 3.938 kB / 0.5321 GB, free: 10.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.08323/0.4095, allocations: 15.79 MB / 0.5475 GB, free: 14.31 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.4096, allocations: 90.23 kB / 0.5476 GB, free: 14.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004552/0.41, allocations: 389.5 kB / 0.548 GB, free: 13.81 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001412/0.4102, allocations: 45.7 kB / 0.548 GB, free: 13.76 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.4103, allocations: 225.5 kB / 0.5482 GB, free: 13.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000367/0.4107, allocations: 420.3 kB / 0.5486 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000563/0.4113, allocations: 198.9 kB / 0.5488 GB, free: 12.92 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.4114, allocations: 374.8 kB / 0.5492 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003533/0.4149, allocations: 1.345 MB / 0.5505 GB, free: 11.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003691/0.4187, allocations: 1.49 MB / 0.5519 GB, free: 9.668 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006525/0.4252, allocations: 2.445 MB / 0.5543 GB, free: 7.176 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.4252, allocations: 0 / 0.5543 GB, free: 7.176 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007512/0.4327, allocations: 2.838 MB / 0.5571 GB, free: 4.332 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.4328, allocations: 4 kB / 0.5571 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.4328, allocations: 4 kB / 0.5571 GB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.4328, allocations: 8 kB / 0.5571 GB, free: 4.316 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00258/0.4354, allocations: 411.6 kB / 0.5575 GB, free: 3.914 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.438e-05/0.4355, allocations: 11.94 kB / 0.5575 GB, free: 3.902 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/0.4374, allocations: 219.6 kB / 0.5577 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001623/0.4375, allocations: 51.98 kB / 0.5578 GB, free: 3.637 MB / 414.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.0004371/0.438, allocations: 230.1 kB / 0.558 GB, free: 3.402 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002116/0.4382, allocations: 67.52 kB / 0.5581 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002602/0.4385, allocations: 108.7 kB / 0.5582 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.4385, allocations: 12 kB / 0.5582 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.4385, allocations: 3.938 kB / 0.5582 GB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.4385, allocations: 7.969 kB / 0.5582 GB, free: 3.207 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.4494, allocations: 5.236 MB / 0.5633 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-05/0.4494, allocations: 24.2 kB / 0.5633 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001463/0.4509, allocations: 355.4 kB / 0.5637 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.363e-05/0.4509, allocations: 32 kB / 0.5637 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-05/0.451, allocations: 44 kB / 0.5637 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.809e-05/0.4511, allocations: 47.78 kB / 0.5638 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-05/0.4511, allocations: 35.86 kB / 0.5638 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006862/0.458, allocations: 3.083 MB / 0.5668 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003161/0.4583, allocations: 240.6 kB / 0.5671 GB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.4584, allocations: 47.98 kB / 0.5671 GB, free: 9.418 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/0.4597, allocations: 191.8 kB / 0.5673 GB, free: 9.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003973/0.4601, allocations: 227.2 kB / 0.5675 GB, free: 9.008 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.295e-05/0.4602, allocations: 56 kB / 0.5675 GB, free: 8.953 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002621/0.4605, allocations: 263.1 kB / 0.5678 GB, free: 8.695 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4605, allocations: 0 / 0.5678 GB, free: 8.695 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009335/0.4614, allocations: 232 kB / 0.568 GB, free: 8.469 MB / 430.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.0002213/0.4616, allocations: 174.8 kB / 0.5682 GB, free: 8.289 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006123/0.4678, allocations: 2.387 MB / 0.5705 GB, free: 5.902 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/0.4678, allocations: 4 kB / 0.5705 GB, free: 5.898 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003156/0.471, allocations: 1.067 MB / 0.5716 GB, free: 4.836 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.4721, allocations: 153.3 kB / 0.5717 GB, free: 4.688 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003545/0.4757, allocations: 1.96 MB / 0.5736 GB, free: 2.414 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005519/0.4762, allocations: 0.9243 MB / 0.5745 GB, free: 1.465 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000969/0.4772, allocations: 206 kB / 0.5747 GB, free: 1.262 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005576/0.4778, allocations: 71.42 kB / 0.5748 GB, free: 1.191 MB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4778, allocations: 0 / 0.5748 GB, free: 1.191 MB / 430.1 MB Notification: Performance of Templates: time 0.02225/0.5, allocations: 16.89 MB / 0.5913 GB, free: 332 kB / 446.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches