Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 185.8 kB / 13.2 MB, free: 2.117 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.382/1.382, allocations: 205.2 MB / 218.9 MB, free: 9.141 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.0007691/0.0007691, allocations: 90.55 kB / 267 MB, free: 9.266 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.3409/0.3409, allocations: 43.47 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.433e-05/2.435e-05, allocations: 4 kB / 425.3 MB, free: 8.188 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 58.84 MB / 484.2 MB, free: 13.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3667/0.4783, allocations: 88.11 MB / 0.5588 GB, free: 16.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/0.4786, allocations: 59.11 kB / 0.5589 GB, free: 16.09 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03064/0.5092, allocations: 11.74 MB / 0.5704 GB, free: 7.488 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5093, allocations: 0 / 0.5704 GB, free: 7.488 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.158e-05/0.5093, allocations: 12 kB / 0.5704 GB, free: 7.477 MB / 394.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.001717/0.511, allocations: 0.8978 MB / 0.5713 GB, free: 6.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.5111, allocations: 8.031 kB / 0.5713 GB, free: 6.562 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.5112, allocations: 59.44 kB / 0.5713 GB, free: 6.504 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.5116, allocations: 364.4 kB / 0.5717 GB, free: 6.145 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002786/0.5119, allocations: 279.4 kB / 0.5719 GB, free: 5.859 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.247e-05/0.512, allocations: 40.09 kB / 0.572 GB, free: 5.832 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008328/0.5129, allocations: 0.6251 MB / 0.5726 GB, free: 5.367 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.5129, allocations: 7.969 kB / 0.5726 GB, free: 5.359 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.436e-05/0.5129, allocations: 17.19 kB / 0.5726 GB, free: 5.355 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.513, allocations: 12 kB / 0.5726 GB, free: 5.344 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.5141, allocations: 0.8286 MB / 0.5734 GB, free: 4.773 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.5163, allocations: 2.085 MB / 0.5755 GB, free: 2.977 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.5176, allocations: 0.5818 MB / 0.576 GB, free: 2.555 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004091/0.518, allocations: 321.4 kB / 0.5763 GB, free: 2.367 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.64e-05/0.5181, allocations: 8.562 kB / 0.5763 GB, free: 2.359 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.5181, allocations: 39 kB / 0.5764 GB, free: 2.32 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 3.206e-06/0.5181, allocations: 4 kB / 0.5764 GB, free: 2.316 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.0194/0.5375, allocations: 7.408 MB / 0.5836 GB, free: 12.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.155e-05/0.5376, allocations: 90.23 kB / 0.5837 GB, free: 12.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005977/0.5383, allocations: 363.7 kB / 0.5841 GB, free: 12.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001628/0.5384, allocations: 50.7 kB / 0.5841 GB, free: 12.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.5386, allocations: 216.1 kB / 0.5843 GB, free: 12.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003963/0.539, allocations: 402.6 kB / 0.5847 GB, free: 11.83 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.5391, allocations: 24.62 kB / 0.5847 GB, free: 11.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.5393, allocations: 374.2 kB / 0.5851 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/0.5407, allocations: 0.9707 MB / 0.586 GB, free: 11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/0.5422, allocations: 1.121 MB / 0.5871 GB, free: 10.35 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/0.5435, allocations: 0.8309 MB / 0.5879 GB, free: 9.895 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.5435, allocations: 0 / 0.5879 GB, free: 9.895 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003315/0.5469, allocations: 2.089 MB / 0.59 GB, free: 8.688 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.5469, allocations: 14.67 kB / 0.59 GB, free: 8.676 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.5469, allocations: 7.984 kB / 0.59 GB, free: 8.668 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.597e-05/0.5469, allocations: 8.312 kB / 0.59 GB, free: 8.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002676/0.5496, allocations: 465.7 kB / 0.5904 GB, free: 8.215 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.84e-05/0.5497, allocations: 8 kB / 0.5904 GB, free: 8.207 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00197/0.5516, allocations: 289.1 kB / 0.5907 GB, free: 7.945 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.5518, allocations: 42.67 kB / 0.5908 GB, free: 7.914 MB / 410.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 () * 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.0003432/0.5521, allocations: 166.2 kB / 0.5909 GB, free: 7.777 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002046/0.5524, allocations: 63.25 kB / 0.591 GB, free: 7.715 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002868/0.5527, allocations: 115.7 kB / 0.5911 GB, free: 7.684 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.5527, allocations: 12 kB / 0.5911 GB, free: 7.672 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.5527, allocations: 4 kB / 0.5911 GB, free: 7.668 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.5527, allocations: 3.984 kB / 0.5911 GB, free: 7.664 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007971/0.5607, allocations: 4.776 MB / 0.5958 GB, free: 3.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.267e-05/0.5607, allocations: 27.94 kB / 0.5958 GB, free: 3.652 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001501/0.5622, allocations: 409.8 kB / 0.5962 GB, free: 3.262 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.643e-05/0.5623, allocations: 32 kB / 0.5962 GB, free: 3.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.838e-05/0.5624, allocations: 56.61 kB / 0.5963 GB, free: 3.191 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.202e-05/0.5624, allocations: 43.86 kB / 0.5963 GB, free: 3.148 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.787e-05/0.5625, allocations: 27.88 kB / 0.5963 GB, free: 3.121 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003506/0.566, allocations: 3.315 MB / 0.5996 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003881/0.5664, allocations: 247.8 kB / 0.5998 GB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.5665, allocations: 52.16 kB / 0.5999 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/0.5679, allocations: 256.5 kB / 0.6001 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004521/0.5684, allocations: 233.5 kB / 0.6003 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.981e-05/0.5685, allocations: 63.98 kB / 0.6004 GB, free: 14.85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003579/0.5689, allocations: 274.1 kB / 0.6007 GB, free: 14.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5689, allocations: 0 / 0.6007 GB, free: 14.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001014/0.5699, allocations: 239.9 kB / 0.6009 GB, free: 14.35 MB / 426.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 () * 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.0002465/0.5702, allocations: 170.4 kB / 0.6011 GB, free: 14.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002829/0.573, allocations: 1.688 MB / 0.6027 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/0.573, allocations: 4 kB / 0.6027 GB, free: 12.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001837/0.5749, allocations: 0.7858 MB / 0.6035 GB, free: 11.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008796/0.5757, allocations: 133.2 kB / 0.6036 GB, free: 11.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003084/0.5788, allocations: 1.716 MB / 0.6053 GB, free: 9.551 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005299/0.5794, allocations: 0.9336 MB / 0.6062 GB, free: 8.594 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001212/0.5806, allocations: 194 kB / 0.6064 GB, free: 8.402 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005512/0.5812, allocations: 63.44 kB / 0.6064 GB, free: 8.34 MB / 426.7 MB Notification: Performance of SimCode: time 1.303e-06/0.5812, allocations: 11.94 kB / 0.6064 GB, free: 8.328 MB / 426.7 MB Notification: Performance of Templates: time 0.02356/0.6047, allocations: 14.8 MB / 0.6209 GB, free: 9.551 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches