Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001837/0.001837, allocations: 195.2 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 225.5 MB / 234.4 MB, free: 3.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008442/0.0008441, allocations: 95.36 kB / 286.3 MB, free: 5.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.186/0.186, allocations: 45.14 MB / 383.3 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.015e-06/8.036e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3701/0.4758, allocations: 89.49 MB / 0.5912 GB, free: 13.45 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001878/0.4761, allocations: 61.5 kB / 0.5912 GB, free: 13.42 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03609/0.5122, allocations: 11.58 MB / 0.6025 GB, free: 3.625 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.042e-05/0.5123, allocations: 12 kB / 0.6025 GB, free: 3.613 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.002245/0.5145, allocations: 0.9403 MB / 0.6035 GB, free: 2.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.5146, allocations: 8.031 kB / 0.6035 GB, free: 2.652 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.5147, allocations: 67.44 kB / 0.6035 GB, free: 2.586 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005507/0.5153, allocations: 366.8 kB / 0.6039 GB, free: 2.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000375/0.5157, allocations: 259 kB / 0.6041 GB, free: 1.945 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.618e-05/0.5158, allocations: 27.94 kB / 0.6042 GB, free: 1.918 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001455/0.5172, allocations: 0.8084 MB / 0.605 GB, free: 1.363 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009058/0.5181, allocations: 0.5636 MB / 0.6055 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.5182, allocations: 8.547 kB / 0.6055 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.666e-05/0.5182, allocations: 0 / 0.6055 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.857e-05/0.5183, allocations: 12 kB / 0.6055 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003061/0.5213, allocations: 2.016 MB / 0.6075 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.5225, allocations: 471.3 kB / 0.6079 GB, free: 14.83 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004514/0.523, allocations: 300 kB / 0.6082 GB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.509e-05/0.5231, allocations: 4.562 kB / 0.6082 GB, free: 14.65 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.344e-05/0.5231, allocations: 44.19 kB / 0.6083 GB, free: 14.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.765e-06/0.5231, allocations: 0 / 0.6083 GB, free: 14.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.02216/0.5453, allocations: 7.192 MB / 0.6153 GB, free: 9.148 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.5454, allocations: 90.11 kB / 0.6154 GB, free: 9.043 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005162/0.546, allocations: 350.1 kB / 0.6157 GB, free: 8.77 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001585/0.5461, allocations: 25.7 kB / 0.6157 GB, free: 8.738 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.5463, allocations: 185.6 kB / 0.6159 GB, free: 8.566 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004052/0.5467, allocations: 386.2 kB / 0.6163 GB, free: 8.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.5468, allocations: 0 / 0.6163 GB, free: 8.23 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.547, allocations: 379 kB / 0.6166 GB, free: 7.879 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.5484, allocations: 0.9561 MB / 0.6176 GB, free: 7.418 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001546/0.55, allocations: 1.094 MB / 0.6187 GB, free: 6.793 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/0.5513, allocations: 0.8007 MB / 0.6194 GB, free: 6.363 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.5513, allocations: 4 kB / 0.6194 GB, free: 6.359 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003537/0.5549, allocations: 2.042 MB / 0.6214 GB, free: 5.164 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.5549, allocations: 4 kB / 0.6214 GB, free: 5.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.5549, allocations: 4 kB / 0.6214 GB, free: 5.156 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.1e-05/0.555, allocations: 8 kB / 0.6214 GB, free: 5.148 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003153/0.5581, allocations: 487.1 kB / 0.6219 GB, free: 4.684 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.628e-05/0.5582, allocations: 23.92 kB / 0.6219 GB, free: 4.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002378/0.5605, allocations: 279.6 kB / 0.6222 GB, free: 4.391 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001998/0.5607, allocations: 43.8 kB / 0.6222 GB, free: 4.355 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.0004123/0.5612, allocations: 128.3 kB / 0.6224 GB, free: 4.227 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002904/0.5615, allocations: 67.19 kB / 0.6224 GB, free: 4.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001989/0.5617, allocations: 63.53 kB / 0.6225 GB, free: 4.129 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-05/0.5617, allocations: 12 kB / 0.6225 GB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.791e-05/0.5617, allocations: 0 / 0.6225 GB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.626e-05/0.5617, allocations: 7.969 kB / 0.6225 GB, free: 4.109 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009085/0.5708, allocations: 4.743 MB / 0.6271 GB, free: 60 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.298e-05/0.5709, allocations: 24 kB / 0.6272 GB, free: 36 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001751/0.5727, allocations: 434.5 kB / 0.6276 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-05/0.5727, allocations: 35.91 kB / 0.6276 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.905e-05/0.5728, allocations: 31.98 kB / 0.6276 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.013e-05/0.5729, allocations: 39.8 kB / 0.6277 GB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.642e-05/0.5729, allocations: 31.88 kB / 0.6277 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003418/0.5763, allocations: 3.25 MB / 0.6309 GB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004676/0.5768, allocations: 245 kB / 0.6311 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.577, allocations: 31.98 kB / 0.6311 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001505/0.5785, allocations: 259.8 kB / 0.6314 GB, free: 11.49 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004477/0.5789, allocations: 214.7 kB / 0.6316 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.5791, allocations: 63.42 kB / 0.6317 GB, free: 11.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003267/0.5794, allocations: 263.1 kB / 0.6319 GB, free: 11.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001033/0.5804, allocations: 195.9 kB / 0.6321 GB, free: 10.88 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.0002858/0.5807, allocations: 140.1 kB / 0.6322 GB, free: 10.73 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002736/0.5835, allocations: 1.634 MB / 0.6338 GB, free: 9.121 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/0.5835, allocations: 4 kB / 0.6338 GB, free: 9.117 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002175/0.5857, allocations: 0.7507 MB / 0.6346 GB, free: 8.371 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.5869, allocations: 110.6 kB / 0.6347 GB, free: 8.266 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004186/0.5911, allocations: 1.672 MB / 0.6363 GB, free: 6.273 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001316/0.5924, allocations: 1.025 MB / 0.6373 GB, free: 5.223 MB / 426.7 MB Notification: Performance of SimCode: time 3.106e-06/0.5925, allocations: 0 / 0.6373 GB, free: 5.223 MB / 426.7 MB Notification: Performance of Templates: time 0.03135/0.6238, allocations: 17.61 MB / 0.6545 GB, free: 3.645 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches