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.0009293/0.0009293, allocations: 180.5 kB / 14.15 MB, free: 1.176 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.326/1.326, allocations: 221.3 MB / 236 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009919/0.0009919, allocations: 83.81 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1794/0.1794, allocations: 44.16 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.645e-05/3.68e-05, allocations: 8 kB / 451.8 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1411, allocations: 61.9 MB / 0.5017 GB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4906/0.6318, allocations: 89.18 MB / 0.5888 GB, free: 156 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001483/0.632, allocations: 63.97 kB / 0.5888 GB, free: 92 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03479/0.6668, allocations: 11.84 MB / 0.6004 GB, free: 4.227 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.6668, allocations: 4 kB / 0.6004 GB, free: 4.223 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.736e-05/0.6668, allocations: 8 kB / 0.6004 GB, free: 4.215 MB / 410.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.002002/0.6688, allocations: 0.896 MB / 0.6013 GB, free: 3.273 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.6689, allocations: 19.97 kB / 0.6013 GB, free: 3.254 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.669, allocations: 59.44 kB / 0.6014 GB, free: 3.195 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005515/0.6696, allocations: 354.8 kB / 0.6017 GB, free: 2.809 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003751/0.67, allocations: 279 kB / 0.602 GB, free: 2.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.6701, allocations: 55.89 kB / 0.602 GB, free: 2.445 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009633/0.671, allocations: 0.6097 MB / 0.6026 GB, free: 1.793 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.6711, allocations: 4 kB / 0.6026 GB, free: 1.789 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.788e-05/0.6711, allocations: 20 kB / 0.6026 GB, free: 1.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.6712, allocations: 8 kB / 0.6027 GB, free: 1.762 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.6725, allocations: 0.8338 MB / 0.6035 GB, free: 0.9297 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0026/0.6751, allocations: 2.086 MB / 0.6055 GB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.6765, allocations: 0.5927 MB / 0.6061 GB, free: 14.14 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004694/0.677, allocations: 322.7 kB / 0.6064 GB, free: 13.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.383e-05/0.677, allocations: 4.562 kB / 0.6064 GB, free: 13.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.6771, allocations: 43.69 kB / 0.6064 GB, free: 13.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=66): time 2.024e-06/0.6771, allocations: 0 / 0.6064 GB, free: 13.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.01988/0.697, allocations: 7.406 MB / 0.6137 GB, free: 6.199 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.6971, allocations: 102.1 kB / 0.6138 GB, free: 6.078 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004203/0.6975, allocations: 359.4 kB / 0.6141 GB, free: 5.719 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001294/0.6976, allocations: 49.7 kB / 0.6142 GB, free: 5.664 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.6978, allocations: 213.1 kB / 0.6144 GB, free: 5.449 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003171/0.6981, allocations: 406.1 kB / 0.6147 GB, free: 5.047 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.6982, allocations: 24 kB / 0.6148 GB, free: 5.023 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.6984, allocations: 374.8 kB / 0.6151 GB, free: 4.648 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001503/0.6999, allocations: 0.9713 MB / 0.6161 GB, free: 3.676 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/0.7014, allocations: 1.119 MB / 0.6172 GB, free: 2.516 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.7028, allocations: 0.825 MB / 0.618 GB, free: 1.695 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.7028, allocations: 0 / 0.618 GB, free: 1.695 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.00337/0.7061, allocations: 2.093 MB / 0.62 GB, free: 15.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.7062, allocations: 4 kB / 0.62 GB, free: 15.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.7062, allocations: 4 kB / 0.62 GB, free: 15.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.7062, allocations: 8 kB / 0.62 GB, free: 15.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002709/0.7089, allocations: 467.4 kB / 0.6205 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.398e-05/0.709, allocations: 15.98 kB / 0.6205 GB, free: 15.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002057/0.711, allocations: 283.7 kB / 0.6208 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/0.7112, allocations: 39.98 kB / 0.6208 GB, free: 14.79 MB / 442.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.0003844/0.7116, allocations: 180.6 kB / 0.621 GB, free: 14.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.7118, allocations: 59.25 kB / 0.621 GB, free: 14.54 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003132/0.7122, allocations: 112.7 kB / 0.6211 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.7122, allocations: 12 kB / 0.6212 GB, free: 14.42 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.7122, allocations: 0 / 0.6212 GB, free: 14.42 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.7122, allocations: 7.969 kB / 0.6212 GB, free: 14.41 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008542/0.7208, allocations: 4.785 MB / 0.6258 GB, free: 9.285 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.123e-05/0.7208, allocations: 20 kB / 0.6259 GB, free: 9.266 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/0.7224, allocations: 416.1 kB / 0.6262 GB, free: 8.859 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.83e-05/0.7224, allocations: 28 kB / 0.6263 GB, free: 8.832 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-05/0.7225, allocations: 51.95 kB / 0.6263 GB, free: 8.781 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.942e-05/0.7225, allocations: 39.86 kB / 0.6264 GB, free: 8.742 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.081e-05/0.7226, allocations: 31.88 kB / 0.6264 GB, free: 8.711 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0034/0.726, allocations: 3.316 MB / 0.6296 GB, free: 4.527 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004626/0.7265, allocations: 248.2 kB / 0.6299 GB, free: 4.266 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.7266, allocations: 55.94 kB / 0.6299 GB, free: 4.211 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001712/0.7283, allocations: 255.8 kB / 0.6302 GB, free: 3.961 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006172/0.729, allocations: 239.2 kB / 0.6304 GB, free: 3.727 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/0.7291, allocations: 56 kB / 0.6304 GB, free: 3.672 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004763/0.7296, allocations: 270.1 kB / 0.6307 GB, free: 3.406 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7296, allocations: 4 kB / 0.6307 GB, free: 3.402 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001499/0.7311, allocations: 240 kB / 0.6309 GB, free: 3.168 MB / 442.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.0003362/0.7315, allocations: 162.7 kB / 0.6311 GB, free: 3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004055/0.7355, allocations: 1.697 MB / 0.6327 GB, free: 1.305 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.048e-05/0.7356, allocations: 4.625 kB / 0.6328 GB, free: 1.301 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002785/0.7384, allocations: 0.78 MB / 0.6335 GB, free: 0.5234 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.7397, allocations: 134.7 kB / 0.6336 GB, free: 408 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004127/0.7438, allocations: 1.712 MB / 0.6353 GB, free: 14.37 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006762/0.7445, allocations: 0.9437 MB / 0.6362 GB, free: 13.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001811/0.7464, allocations: 198 kB / 0.6364 GB, free: 13.21 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007565/0.7471, allocations: 63.42 kB / 0.6365 GB, free: 13.14 MB / 458.7 MB Notification: Performance of SimCode: time 1.223e-06/0.7471, allocations: 0 / 0.6365 GB, free: 13.14 MB / 458.7 MB Notification: Performance of Templates: time 0.02972/0.7769, allocations: 14.79 MB / 0.6509 GB, free: 14.38 MB / 474.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/jenkins/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