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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0008117/0.0008118, allocations: 183.5 kB / 18.09 MB, free: 3.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.172/1.172, allocations: 223.3 MB / 242.1 MB, free: 9.918 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000784/0.000784, allocations: 97.05 kB / 293.3 MB, free: 10.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.261/0.261, allocations: 44.14 MB / 388.5 MB, free: 38.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000312/0.0003121, allocations: 12 kB / 461.1 MB, free: 1.328 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2599, allocations: 61.88 MB / 0.5107 GB, free: 37.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0943/0.3542, allocations: 89.27 MB / 0.5979 GB, free: 5.801 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000182/0.3544, allocations: 71.95 kB / 0.598 GB, free: 5.734 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03229/0.3868, allocations: 11.87 MB / 0.6096 GB, free: 9.836 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3868, allocations: 4 kB / 0.6096 GB, free: 9.832 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.147e-05/0.3868, allocations: 8 kB / 0.6096 GB, free: 9.824 MB / 426.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.00178/0.3886, allocations: 0.9315 MB / 0.6105 GB, free: 8.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.3887, allocations: 12.03 kB / 0.6105 GB, free: 8.828 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.3888, allocations: 60.38 kB / 0.6105 GB, free: 8.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004558/0.3892, allocations: 383.3 kB / 0.6109 GB, free: 8.359 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003117/0.3895, allocations: 279.7 kB / 0.6112 GB, free: 8.047 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.766e-05/0.3896, allocations: 44.28 kB / 0.6112 GB, free: 8.004 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001832/0.3915, allocations: 0.8677 MB / 0.6121 GB, free: 7.098 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.3915, allocations: 11.86 kB / 0.6121 GB, free: 7.086 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.201e-05/0.3916, allocations: 20 kB / 0.6121 GB, free: 7.066 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.3916, allocations: 12 kB / 0.6121 GB, free: 7.055 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003195/0.3948, allocations: 1.341 MB / 0.6134 GB, free: 5.715 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002458/0.3972, allocations: 2.084 MB / 0.6155 GB, free: 3.543 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002437/0.3997, allocations: 0.8728 MB / 0.6163 GB, free: 2.656 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001391/0.4011, allocations: 0.557 MB / 0.6168 GB, free: 2.094 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.063e-05/0.4012, allocations: 12.56 kB / 0.6169 GB, free: 2.082 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.4012, allocations: 39.69 kB / 0.6169 GB, free: 2.035 MB / 426.7 MB Notification: Performance of pre-optimization done (n=66): time 2.465e-06/0.4012, allocations: 0 / 0.6169 GB, free: 2.035 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.07689/0.4781, allocations: 18.3 MB / 0.6348 GB, free: 15.58 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.4782, allocations: 94.23 kB / 0.6349 GB, free: 15.46 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005108/0.4787, allocations: 409.5 kB / 0.6352 GB, free: 15.06 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001523/0.4789, allocations: 45.7 kB / 0.6353 GB, free: 15.01 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.479, allocations: 213.2 kB / 0.6355 GB, free: 14.79 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003413/0.4794, allocations: 410 kB / 0.6359 GB, free: 14.39 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.4795, allocations: 20 kB / 0.6359 GB, free: 14.37 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4796, allocations: 378.7 kB / 0.6363 GB, free: 13.99 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003311/0.483, allocations: 1.463 MB / 0.6377 GB, free: 12.52 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003403/0.4864, allocations: 1.611 MB / 0.6393 GB, free: 10.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00606/0.4924, allocations: 2.68 MB / 0.6419 GB, free: 8.145 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.4925, allocations: 0 / 0.6419 GB, free: 8.145 MB / 458.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.006943/0.4994, allocations: 3.072 MB / 0.6449 GB, free: 5.062 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.4995, allocations: 8.234 kB / 0.6449 GB, free: 5.055 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.4995, allocations: 8 kB / 0.6449 GB, free: 5.047 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.4995, allocations: 8 kB / 0.6449 GB, free: 5.039 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002427/0.5019, allocations: 471.4 kB / 0.6454 GB, free: 4.578 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.505e-05/0.502, allocations: 11.98 kB / 0.6454 GB, free: 4.566 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001766/0.5037, allocations: 283.6 kB / 0.6456 GB, free: 4.289 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.5039, allocations: 39.98 kB / 0.6457 GB, free: 4.25 MB / 458.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.00044/0.5043, allocations: 238.1 kB / 0.6459 GB, free: 4.008 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002121/0.5046, allocations: 63.25 kB / 0.646 GB, free: 3.945 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002025/0.5048, allocations: 116.7 kB / 0.6461 GB, free: 3.828 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.5048, allocations: 12 kB / 0.6461 GB, free: 3.816 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.5048, allocations: 3.938 kB / 0.6461 GB, free: 3.812 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.5048, allocations: 11.91 kB / 0.6461 GB, free: 3.801 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01059/0.5154, allocations: 5.589 MB / 0.6516 GB, free: 13.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.313e-05/0.5155, allocations: 20 kB / 0.6516 GB, free: 13.85 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/0.5169, allocations: 416.1 kB / 0.652 GB, free: 13.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.589e-05/0.5169, allocations: 28 kB / 0.652 GB, free: 13.42 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.517, allocations: 48 kB / 0.652 GB, free: 13.37 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.821e-05/0.5171, allocations: 43.84 kB / 0.6521 GB, free: 13.33 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.145e-05/0.5171, allocations: 35.81 kB / 0.6521 GB, free: 13.29 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006818/0.5239, allocations: 3.439 MB / 0.6555 GB, free: 9.559 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004094/0.5244, allocations: 248.3 kB / 0.6557 GB, free: 9.297 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001428/0.5245, allocations: 51.98 kB / 0.6558 GB, free: 9.246 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/0.5258, allocations: 259.7 kB / 0.656 GB, free: 8.992 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004053/0.5262, allocations: 235.2 kB / 0.6562 GB, free: 8.762 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.495e-05/0.5263, allocations: 56 kB / 0.6563 GB, free: 8.707 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003151/0.5266, allocations: 279.1 kB / 0.6566 GB, free: 8.434 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5266, allocations: 0 / 0.6566 GB, free: 8.434 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0009984/0.5276, allocations: 244 kB / 0.6568 GB, free: 8.195 MB / 474.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.000233/0.5279, allocations: 171.8 kB / 0.657 GB, free: 8.02 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005889/0.5338, allocations: 2.59 MB / 0.6595 GB, free: 5.434 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/0.5338, allocations: 4 kB / 0.6595 GB, free: 5.43 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003142/0.5369, allocations: 1.187 MB / 0.6606 GB, free: 4.25 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/0.5389, allocations: 157.4 kB / 0.6608 GB, free: 4.098 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003888/0.5428, allocations: 2.173 MB / 0.6629 GB, free: 1.605 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005608/0.5434, allocations: 0.9359 MB / 0.6638 GB, free: 0.6367 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001345/0.5448, allocations: 202.1 kB / 0.664 GB, free: 448 kB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000564/0.5453, allocations: 63.42 kB / 0.6641 GB, free: 384 kB / 474.7 MB Notification: Performance of SimCode: time 8.71e-07/0.5453, allocations: 0 / 0.6641 GB, free: 384 kB / 474.7 MB Notification: Performance of Templates: time 0.02051/0.5658, allocations: 14.88 MB / 0.6786 GB, free: 1.523 MB / 490.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches