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.00128/0.00128, allocations: 110 kB / 18.45 MB, free: 4.602 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.001338/0.001338, allocations: 182.3 kB / 19.37 MB, free: 3.684 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.257/1.257, allocations: 222.9 MB / 243.1 MB, free: 15.08 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.1859/0.1859, allocations: 44.18 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.91 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3039, allocations: 60.82 MB / 0.5195 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.00326/0.3072, allocations: 2.415 MB / 0.5219 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001645/0.3088, allocations: 0.9349 MB / 0.5228 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003892/0.3092, allocations: 13.16 kB / 0.5228 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004455/0.3097, allocations: 119.5 kB / 0.5229 GB, free: 1.172 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003381/0.3101, allocations: 97.77 kB / 0.523 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009004/0.311, allocations: 280.1 kB / 0.5233 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009094/0.3119, allocations: 0.7271 MB / 0.524 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.3121, allocations: 72.83 kB / 0.5241 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003925/0.3125, allocations: 294.8 kB / 0.5244 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004693/0.313, allocations: 341.5 kB / 0.5247 GB, free: 360 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.3131, allocations: 60.16 kB / 0.5248 GB, free: 360 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.3132, allocations: 60.75 kB / 0.5248 GB, free: 360 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002002/0.3134, allocations: 183.7 kB / 0.525 GB, free: 268 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001991/0.3136, allocations: 243 kB / 0.5252 GB, free: 100 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006979/0.3143, allocations: 0.5604 MB / 0.5258 GB, free: 15.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3144, allocations: 0 / 0.5258 GB, free: 15.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3144, allocations: 0 / 0.5258 GB, free: 15.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.3144, allocations: 0 / 0.5258 GB, free: 15.79 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.002434/0.3168, allocations: 0.94 MB / 0.5267 GB, free: 15.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.3169, allocations: 13.56 kB / 0.5267 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.317, allocations: 69.34 kB / 0.5268 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006362/0.3177, allocations: 382 kB / 0.5271 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000389/0.3181, allocations: 263.2 kB / 0.5274 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.3182, allocations: 47.55 kB / 0.5274 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002146/0.3203, allocations: 0.8088 MB / 0.5282 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/0.3204, allocations: 9.25 kB / 0.5282 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.202e-05/0.3205, allocations: 15.88 kB / 0.5282 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.3205, allocations: 11.09 kB / 0.5282 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003487/0.324, allocations: 1.201 MB / 0.5294 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002558/0.3265, allocations: 2.023 MB / 0.5314 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003069/0.3296, allocations: 0.8251 MB / 0.5322 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/0.3312, allocations: 490.2 kB / 0.5327 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.761e-05/0.3312, allocations: 15.09 kB / 0.5327 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.3313, allocations: 46.67 kB / 0.5327 GB, free: 10.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.806e-06/0.3313, allocations: 0 / 0.5327 GB, free: 10.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.08626/0.4175, allocations: 15.77 MB / 0.5481 GB, free: 14.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.4176, allocations: 90.23 kB / 0.5482 GB, free: 14.26 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004485/0.4181, allocations: 393.4 kB / 0.5486 GB, free: 13.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001739/0.4183, allocations: 45.7 kB / 0.5486 GB, free: 13.81 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.4184, allocations: 225 kB / 0.5488 GB, free: 13.58 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003699/0.4188, allocations: 398.1 kB / 0.5492 GB, free: 13.19 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005368/0.4193, allocations: 198.9 kB / 0.5494 GB, free: 12.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.4195, allocations: 366.8 kB / 0.5498 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003501/0.423, allocations: 1.349 MB / 0.5511 GB, free: 11.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003588/0.4266, allocations: 1.493 MB / 0.5525 GB, free: 9.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006517/0.4331, allocations: 2.441 MB / 0.5549 GB, free: 7.242 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.4332, allocations: 0 / 0.5549 GB, free: 7.242 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007573/0.4407, allocations: 2.834 MB / 0.5577 GB, free: 4.402 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.4408, allocations: 10.66 kB / 0.5577 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.4408, allocations: 4 kB / 0.5577 GB, free: 4.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.78e-05/0.4408, allocations: 8.25 kB / 0.5577 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002691/0.4435, allocations: 403.4 kB / 0.5581 GB, free: 3.988 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.92e-05/0.4436, allocations: 23.86 kB / 0.5581 GB, free: 3.965 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/0.4456, allocations: 215.7 kB / 0.5583 GB, free: 3.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001618/0.4457, allocations: 47.98 kB / 0.5584 GB, free: 3.707 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.0005025/0.4462, allocations: 230.1 kB / 0.5586 GB, free: 3.473 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002355/0.4465, allocations: 71.19 kB / 0.5587 GB, free: 3.402 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002965/0.4468, allocations: 104.7 kB / 0.5588 GB, free: 3.301 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.4468, allocations: 12 kB / 0.5588 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.049e-05/0.4468, allocations: 7.938 kB / 0.5588 GB, free: 3.281 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.4469, allocations: 7.969 kB / 0.5588 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01126/0.4581, allocations: 5.235 MB / 0.5639 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-05/0.4582, allocations: 28.25 kB / 0.5639 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001529/0.4597, allocations: 347.4 kB / 0.5643 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.07e-05/0.4598, allocations: 32 kB / 0.5643 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.4599, allocations: 47.98 kB / 0.5643 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-05/0.4599, allocations: 39.86 kB / 0.5644 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.88e-05/0.46, allocations: 35.81 kB / 0.5644 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007187/0.4672, allocations: 3.083 MB / 0.5674 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004119/0.4676, allocations: 232.3 kB / 0.5676 GB, free: 9.543 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.4678, allocations: 51.97 kB / 0.5677 GB, free: 9.492 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/0.4691, allocations: 191.8 kB / 0.5679 GB, free: 9.305 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00042/0.4696, allocations: 219.2 kB / 0.5681 GB, free: 9.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.983e-05/0.4697, allocations: 56 kB / 0.5681 GB, free: 9.035 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003199/0.47, allocations: 267.1 kB / 0.5684 GB, free: 8.773 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.47, allocations: 0 / 0.5684 GB, free: 8.773 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001049/0.4711, allocations: 228 kB / 0.5686 GB, free: 8.551 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.0002456/0.4713, allocations: 170.7 kB / 0.5688 GB, free: 8.375 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006382/0.4777, allocations: 2.394 MB / 0.5711 GB, free: 5.98 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/0.4777, allocations: 0 / 0.5711 GB, free: 5.98 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003314/0.4811, allocations: 1.071 MB / 0.5721 GB, free: 4.914 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/0.4825, allocations: 147.9 kB / 0.5723 GB, free: 4.773 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003859/0.4864, allocations: 1.994 MB / 0.5742 GB, free: 2.465 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/0.487, allocations: 0.9321 MB / 0.5751 GB, free: 1.508 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007161/0.4877, allocations: 75.42 kB / 0.5752 GB, free: 1.434 MB / 430.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4877, allocations: 0 / 0.5752 GB, free: 1.434 MB / 430.1 MB Notification: Performance of Templates: time 0.02053/0.5082, allocations: 14.36 MB / 0.5892 GB, free: 3.102 MB / 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches