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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 183.8 kB / 8.516 MB, free: 0.4961 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 221.4 MB / 230.3 MB, free: 13.57 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008664/0.0008664, allocations: 93.67 kB / 281.2 MB, free: 10.53 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.186/0.186, allocations: 44.13 MB / 376.1 MB, free: 11.69 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 6.913e-06/6.953e-06, allocations: 0 / 444 MB, free: 54.41 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1203, allocations: 61.91 MB / 0.4941 GB, free: 8.43 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3684/0.4888, allocations: 88.43 MB / 0.5804 GB, free: 10.39 MB / 402.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002187/0.4891, allocations: 67.97 kB / 0.5805 GB, free: 10.33 MB / 402.8 MB Notification: Performance of FrontEnd: time 0.03564/0.5247, allocations: 11.51 MB / 0.5917 GB, free: 14.8 MB / 418.8 MB Notification: Performance of Transformations before backend: time 3.853e-05/0.5248, allocations: 11.98 kB / 0.5918 GB, free: 14.79 MB / 418.8 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.00255/0.5274, allocations: 0.9428 MB / 0.5927 GB, free: 13.79 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.5274, allocations: 13.47 kB / 0.5927 GB, free: 13.78 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002408/0.5277, allocations: 59.44 kB / 0.5927 GB, free: 13.72 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006535/0.5284, allocations: 373.6 kB / 0.5931 GB, free: 13.32 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004023/0.5288, allocations: 259.1 kB / 0.5933 GB, free: 13.03 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.5289, allocations: 24 kB / 0.5934 GB, free: 13.01 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001545/0.5304, allocations: 0.8064 MB / 0.5942 GB, free: 12.2 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009134/0.5314, allocations: 0.5687 MB / 0.5947 GB, free: 11.59 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.707e-05/0.5314, allocations: 8.562 kB / 0.5947 GB, free: 11.58 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.487e-05/0.5315, allocations: 0 / 0.5947 GB, free: 11.58 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.5315, allocations: 16 kB / 0.5947 GB, free: 11.57 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002958/0.5345, allocations: 2.019 MB / 0.5967 GB, free: 9.473 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.5357, allocations: 456.8 kB / 0.5971 GB, free: 9.012 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005095/0.5362, allocations: 294.8 kB / 0.5974 GB, free: 8.719 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 8.252e-05/0.5363, allocations: 12.56 kB / 0.5974 GB, free: 8.707 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.5363, allocations: 51 kB / 0.5975 GB, free: 8.648 MB / 418.8 MB Notification: Performance of pre-optimization done (n=66): time 2.374e-06/0.5363, allocations: 0 / 0.5975 GB, free: 8.648 MB / 418.8 MB Notification: Performance of matching and sorting (n=122): time 0.02257/0.5589, allocations: 7.186 MB / 0.6045 GB, free: 1.301 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/0.559, allocations: 90.11 kB / 0.6046 GB, free: 1.195 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00053/0.5595, allocations: 353.9 kB / 0.6049 GB, free: 0.8516 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001928/0.5597, allocations: 25.7 kB / 0.6049 GB, free: 0.8203 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.5599, allocations: 189.1 kB / 0.6051 GB, free: 0.6289 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003889/0.5603, allocations: 386.1 kB / 0.6055 GB, free: 252 kB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.5604, allocations: 0 / 0.6055 GB, free: 252 kB / 418.8 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.5606, allocations: 374.8 kB / 0.6059 GB, free: 15.87 MB / 434.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001497/0.5621, allocations: 0.9517 MB / 0.6068 GB, free: 14.92 MB / 434.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/0.5638, allocations: 1.097 MB / 0.6079 GB, free: 13.79 MB / 434.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.5651, allocations: 0.8112 MB / 0.6086 GB, free: 12.97 MB / 434.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.5651, allocations: 0 / 0.6086 GB, free: 12.97 MB / 434.8 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003498/0.5686, allocations: 2.035 MB / 0.6106 GB, free: 10.93 MB / 434.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.5686, allocations: 11.94 kB / 0.6106 GB, free: 10.92 MB / 434.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.5686, allocations: 320 / 0.6106 GB, free: 10.92 MB / 434.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.965e-05/0.5687, allocations: 16 kB / 0.6107 GB, free: 10.9 MB / 434.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003125/0.5718, allocations: 487.4 kB / 0.6111 GB, free: 10.43 MB / 434.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.744e-05/0.5719, allocations: 11.98 kB / 0.6111 GB, free: 10.41 MB / 434.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002318/0.5742, allocations: 283.7 kB / 0.6114 GB, free: 10.14 MB / 434.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000261/0.5744, allocations: 47.97 kB / 0.6115 GB, free: 10.09 MB / 434.8 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.0003841/0.5748, allocations: 132.3 kB / 0.6116 GB, free: 9.953 MB / 434.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002775/0.5751, allocations: 67.23 kB / 0.6116 GB, free: 9.887 MB / 434.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001655/0.5753, allocations: 60.72 kB / 0.6117 GB, free: 9.82 MB / 434.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.5753, allocations: 12 kB / 0.6117 GB, free: 9.809 MB / 434.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.484e-05/0.5753, allocations: 4 kB / 0.6117 GB, free: 9.805 MB / 434.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.5754, allocations: 7.969 kB / 0.6117 GB, free: 9.797 MB / 434.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009158/0.5845, allocations: 4.739 MB / 0.6164 GB, free: 4.691 MB / 434.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.533e-05/0.5846, allocations: 20 kB / 0.6164 GB, free: 4.672 MB / 434.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/0.5863, allocations: 436.1 kB / 0.6168 GB, free: 4.246 MB / 434.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.299e-05/0.5863, allocations: 32 kB / 0.6168 GB, free: 4.215 MB / 434.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.5865, allocations: 35.89 kB / 0.6169 GB, free: 4.18 MB / 434.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.877e-05/0.5865, allocations: 39.86 kB / 0.6169 GB, free: 4.141 MB / 434.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.658e-05/0.5865, allocations: 35.81 kB / 0.6169 GB, free: 4.105 MB / 434.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003473/0.59, allocations: 3.242 MB / 0.6201 GB, free: 15.99 MB / 450.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004799/0.5905, allocations: 252.1 kB / 0.6203 GB, free: 15.73 MB / 450.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001841/0.5907, allocations: 31.98 kB / 0.6204 GB, free: 15.7 MB / 450.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/0.5922, allocations: 255.8 kB / 0.6206 GB, free: 15.45 MB / 450.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004712/0.5927, allocations: 215.2 kB / 0.6208 GB, free: 15.24 MB / 450.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.5928, allocations: 59.98 kB / 0.6209 GB, free: 15.18 MB / 450.8 MB Notification: Performance of sort global known variables: time 0.0003515/0.5932, allocations: 260.6 kB / 0.6211 GB, free: 14.93 MB / 450.8 MB Notification: Performance of remove unused functions: time 0.001171/0.5944, allocations: 211.9 kB / 0.6213 GB, free: 14.72 MB / 450.8 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.0002656/0.5947, allocations: 146.7 kB / 0.6215 GB, free: 14.57 MB / 450.8 MB Notification: Performance of simCode: created initialization part: time 0.002783/0.5974, allocations: 1.627 MB / 0.623 GB, free: 12.95 MB / 450.8 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.5975, allocations: 0 / 0.623 GB, free: 12.95 MB / 450.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002043/0.5995, allocations: 0.7543 MB / 0.6238 GB, free: 12.2 MB / 450.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.6006, allocations: 110.8 kB / 0.6239 GB, free: 12.09 MB / 450.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004112/0.6047, allocations: 1.685 MB / 0.6255 GB, free: 10.08 MB / 450.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001627/0.6063, allocations: 1.021 MB / 0.6265 GB, free: 9.035 MB / 450.8 MB Notification: Performance of SimCode: time 1.242e-06/0.6063, allocations: 0 / 0.6265 GB, free: 9.035 MB / 450.8 MB Notification: Performance of Templates: time 0.02974/0.6361, allocations: 17.61 MB / 0.6437 GB, free: 7.461 MB / 466.8 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