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.001219/0.001219, allocations: 113.8 kB / 17.78 MB, free: 5.285 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.001378/0.001378, allocations: 183.9 kB / 18.71 MB, free: 4.371 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.511/1.511, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2228/0.2228, allocations: 44.19 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 71.89 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4991/0.5003, allocations: 60.82 MB / 0.5189 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004058/0.5044, allocations: 2.407 MB / 0.5212 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001902/0.5063, allocations: 0.9357 MB / 0.5222 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002191/0.5066, allocations: 9.562 kB / 0.5222 GB, free: 1.246 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004598/0.507, allocations: 122.6 kB / 0.5223 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002913/0.5074, allocations: 101.6 kB / 0.5224 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008239/0.5082, allocations: 283.9 kB / 0.5227 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009616/0.5092, allocations: 0.7302 MB / 0.5234 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.5094, allocations: 71.91 kB / 0.5234 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004086/0.5098, allocations: 298.1 kB / 0.5237 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004735/0.5103, allocations: 334.3 kB / 0.524 GB, free: 372 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.5104, allocations: 61.19 kB / 0.5241 GB, free: 372 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.5105, allocations: 60.16 kB / 0.5242 GB, free: 372 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002244/0.5107, allocations: 191.9 kB / 0.5243 GB, free: 272 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002232/0.511, allocations: 239.9 kB / 0.5246 GB, free: 108 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000807/0.5118, allocations: 0.5637 MB / 0.5251 GB, free: 15.78 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.5118, allocations: 1.219 kB / 0.5251 GB, free: 15.78 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5118, allocations: 4 kB / 0.5251 GB, free: 15.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.5118, allocations: 0 / 0.5251 GB, free: 15.77 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.002545/0.5144, allocations: 0.9313 MB / 0.526 GB, free: 15.06 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.5144, allocations: 9.969 kB / 0.526 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001447/0.5146, allocations: 69.91 kB / 0.5261 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006309/0.5152, allocations: 383.1 kB / 0.5265 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004277/0.5157, allocations: 261.4 kB / 0.5267 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.836e-05/0.5158, allocations: 43.86 kB / 0.5268 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002177/0.5179, allocations: 0.8094 MB / 0.5276 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.518, allocations: 9.219 kB / 0.5276 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.928e-05/0.518, allocations: 16 kB / 0.5276 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.5181, allocations: 10.88 kB / 0.5276 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003561/0.5216, allocations: 1.205 MB / 0.5288 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003022/0.5247, allocations: 2.023 MB / 0.5307 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003056/0.5277, allocations: 0.8287 MB / 0.5315 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001594/0.5293, allocations: 491 kB / 0.532 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.014e-05/0.5294, allocations: 10.48 kB / 0.532 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.026e-05/0.5295, allocations: 42.78 kB / 0.5321 GB, free: 10.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.324e-06/0.5295, allocations: 0 / 0.5321 GB, free: 10.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.08785/0.6173, allocations: 15.77 MB / 0.5475 GB, free: 14.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.49e-05/0.6175, allocations: 90.23 kB / 0.5476 GB, free: 14.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005033/0.618, allocations: 393.4 kB / 0.5479 GB, free: 13.85 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001527/0.6181, allocations: 45.7 kB / 0.548 GB, free: 13.8 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.6183, allocations: 224.9 kB / 0.5482 GB, free: 13.58 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003882/0.6187, allocations: 394.2 kB / 0.5486 GB, free: 13.19 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005437/0.6193, allocations: 198.8 kB / 0.5488 GB, free: 12.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.6194, allocations: 378.8 kB / 0.5491 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003614/0.623, allocations: 1.338 MB / 0.5504 GB, free: 11.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003813/0.6269, allocations: 1.497 MB / 0.5519 GB, free: 9.715 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006845/0.6337, allocations: 2.449 MB / 0.5543 GB, free: 7.219 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-06/0.6337, allocations: 0 / 0.5543 GB, free: 7.219 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008119/0.6419, allocations: 2.826 MB / 0.557 GB, free: 4.387 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.6419, allocations: 8 kB / 0.557 GB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.6419, allocations: 4 kB / 0.557 GB, free: 4.375 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.78e-05/0.642, allocations: 8 kB / 0.5571 GB, free: 4.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002789/0.6448, allocations: 411.4 kB / 0.5574 GB, free: 3.965 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-05/0.6448, allocations: 19.86 kB / 0.5575 GB, free: 3.945 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002024/0.6469, allocations: 215.7 kB / 0.5577 GB, free: 3.734 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.647, allocations: 39.98 kB / 0.5577 GB, free: 3.695 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.0005373/0.6476, allocations: 230.1 kB / 0.5579 GB, free: 3.461 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002345/0.6478, allocations: 67.19 kB / 0.558 GB, free: 3.395 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002876/0.6481, allocations: 112.7 kB / 0.5581 GB, free: 3.285 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.6481, allocations: 12 kB / 0.5581 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.485e-05/0.6481, allocations: 7.938 kB / 0.5581 GB, free: 3.266 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.6481, allocations: 3.984 kB / 0.5581 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/0.6603, allocations: 5.239 MB / 0.5632 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.24e-05/0.6603, allocations: 20 kB / 0.5633 GB, free: 13.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/0.6619, allocations: 355.8 kB / 0.5636 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.999e-05/0.6619, allocations: 28 kB / 0.5636 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.664e-05/0.662, allocations: 44 kB / 0.5637 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.257e-05/0.662, allocations: 39.86 kB / 0.5637 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.202e-05/0.6621, allocations: 35.81 kB / 0.5637 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007453/0.6695, allocations: 3.083 MB / 0.5667 GB, free: 9.781 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000425/0.67, allocations: 240.3 kB / 0.567 GB, free: 9.527 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.6701, allocations: 51.98 kB / 0.567 GB, free: 9.477 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001311/0.6714, allocations: 187.8 kB / 0.5672 GB, free: 9.293 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004355/0.6719, allocations: 215.2 kB / 0.5674 GB, free: 9.082 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.549e-05/0.672, allocations: 60 kB / 0.5675 GB, free: 9.023 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003146/0.6723, allocations: 263.1 kB / 0.5677 GB, free: 8.766 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6723, allocations: 0 / 0.5677 GB, free: 8.766 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001079/0.6734, allocations: 236 kB / 0.5679 GB, free: 8.535 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.0002582/0.6737, allocations: 170.8 kB / 0.5681 GB, free: 8.359 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006639/0.6803, allocations: 2.394 MB / 0.5704 GB, free: 5.965 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.618e-05/0.6803, allocations: 4 kB / 0.5704 GB, free: 5.961 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003558/0.6839, allocations: 1.063 MB / 0.5715 GB, free: 4.902 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.6853, allocations: 151.8 kB / 0.5716 GB, free: 4.758 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003889/0.6892, allocations: 1.942 MB / 0.5735 GB, free: 2.504 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005324/0.6898, allocations: 0.9282 MB / 0.5744 GB, free: 1.551 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001192/0.691, allocations: 210 kB / 0.5746 GB, free: 1.344 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006331/0.6916, allocations: 71.42 kB / 0.5747 GB, free: 1.273 MB / 430.1 MB Notification: Performance of SimCode: time 7.21e-07/0.6916, allocations: 4 kB / 0.5747 GB, free: 1.27 MB / 430.1 MB Notification: Performance of Templates: time 0.02628/0.7179, allocations: 16.89 MB / 0.5912 GB, free: 420 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