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: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) [: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.000986/0.000986, allocations: 174.8 kB / 8.518 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.132/1.132, allocations: 221.4 MB / 230.3 MB, free: 7.629 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.0008801/0.0008801, allocations: 94.47 kB / 281.2 MB, free: 5.434 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.1563/0.1563, allocations: 44.14 MB / 376.1 MB, free: 3.191 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1815/0.3378, allocations: 68.02 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.4411, allocations: 61.91 MB / 0.4942 GB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.268/0.7092, allocations: 88.43 MB / 0.5805 GB, free: 8.387 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001935/0.7094, allocations: 67.38 kB / 0.5806 GB, free: 8.324 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.03746/0.7469, allocations: 12.48 MB / 0.5928 GB, free: 11.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.747, allocations: 11.94 kB / 0.5928 GB, free: 11.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.7471, allocations: 59.44 kB / 0.5928 GB, free: 11.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005916/0.7477, allocations: 365.5 kB / 0.5932 GB, free: 11.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003772/0.7481, allocations: 259.1 kB / 0.5934 GB, free: 11.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.684e-05/0.7482, allocations: 28 kB / 0.5935 GB, free: 11 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00141/0.7497, allocations: 0.818 MB / 0.5943 GB, free: 10.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009315/0.7506, allocations: 0.557 MB / 0.5948 GB, free: 9.586 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.7506, allocations: 11.91 kB / 0.5948 GB, free: 9.574 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.566e-05/0.7507, allocations: 3.984 kB / 0.5948 GB, free: 9.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.7507, allocations: 8 kB / 0.5948 GB, free: 9.562 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002863/0.7536, allocations: 2.015 MB / 0.5968 GB, free: 7.473 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.7548, allocations: 456.7 kB / 0.5972 GB, free: 7.016 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004642/0.7552, allocations: 302.8 kB / 0.5975 GB, free: 6.715 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.221e-05/0.7553, allocations: 12.55 kB / 0.5975 GB, free: 6.703 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.7554, allocations: 43.12 kB / 0.5976 GB, free: 6.652 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.224e-06/0.7554, allocations: 0 / 0.5976 GB, free: 6.652 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.02169/0.7771, allocations: 7.187 MB / 0.6046 GB, free: 15.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.7772, allocations: 90.11 kB / 0.6047 GB, free: 15.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004885/0.7777, allocations: 353.9 kB / 0.605 GB, free: 14.85 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001473/0.7778, allocations: 29.7 kB / 0.6051 GB, free: 14.81 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.778, allocations: 189.1 kB / 0.6052 GB, free: 14.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003844/0.7784, allocations: 386.1 kB / 0.6056 GB, free: 14.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.7785, allocations: 0 / 0.6056 GB, free: 14.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.7787, allocations: 370.8 kB / 0.606 GB, free: 13.87 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/0.7803, allocations: 0.9517 MB / 0.6069 GB, free: 12.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001621/0.7819, allocations: 1.101 MB / 0.608 GB, free: 11.78 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.7832, allocations: 0.7995 MB / 0.6087 GB, free: 10.97 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.7833, allocations: 0 / 0.6087 GB, free: 10.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003566/0.7868, allocations: 2.039 MB / 0.6107 GB, free: 8.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.7869, allocations: 8.297 kB / 0.6107 GB, free: 8.922 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.7869, allocations: 8 kB / 0.6107 GB, free: 8.914 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.144e-05/0.7869, allocations: 8 kB / 0.6108 GB, free: 8.906 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003056/0.79, allocations: 491.4 kB / 0.6112 GB, free: 8.426 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.083e-05/0.79, allocations: 8 kB / 0.6112 GB, free: 8.418 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00227/0.7923, allocations: 288.5 kB / 0.6115 GB, free: 8.137 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002014/0.7925, allocations: 36 kB / 0.6115 GB, free: 8.102 MB / 426.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.0003649/0.7929, allocations: 144.3 kB / 0.6117 GB, free: 7.953 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002541/0.7931, allocations: 59.25 kB / 0.6117 GB, free: 7.895 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001391/0.7933, allocations: 64.72 kB / 0.6118 GB, free: 7.824 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/0.7933, allocations: 12 kB / 0.6118 GB, free: 7.812 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.7933, allocations: 7.938 kB / 0.6118 GB, free: 7.805 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.7933, allocations: 3.984 kB / 0.6118 GB, free: 7.801 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009105/0.8024, allocations: 4.742 MB / 0.6164 GB, free: 2.695 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.343e-05/0.8025, allocations: 32.81 kB / 0.6165 GB, free: 2.664 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001719/0.8042, allocations: 435.4 kB / 0.6169 GB, free: 2.238 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.234e-05/0.8043, allocations: 32 kB / 0.6169 GB, free: 2.207 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.842e-05/0.8044, allocations: 31.91 kB / 0.617 GB, free: 2.176 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.799e-05/0.8044, allocations: 43.8 kB / 0.617 GB, free: 2.133 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.932e-05/0.8044, allocations: 31.88 kB / 0.617 GB, free: 2.102 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003343/0.8078, allocations: 3.246 MB / 0.6202 GB, free: 13.98 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004232/0.812, allocations: 4.157 MB / 0.6243 GB, free: 8.953 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000414/0.8125, allocations: 248.2 kB / 0.6245 GB, free: 8.691 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/0.8126, allocations: 27.98 kB / 0.6245 GB, free: 8.664 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001481/0.8141, allocations: 259.8 kB / 0.6248 GB, free: 8.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004333/0.8146, allocations: 223.2 kB / 0.625 GB, free: 8.191 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/0.8147, allocations: 59.98 kB / 0.625 GB, free: 8.133 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003035/0.815, allocations: 260.6 kB / 0.6253 GB, free: 7.879 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001606/0.8166, allocations: 196 kB / 0.6255 GB, free: 7.688 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.0002439/0.8169, allocations: 150.7 kB / 0.6256 GB, free: 7.531 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002709/0.8196, allocations: 1.632 MB / 0.6272 GB, free: 5.902 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.8196, allocations: 4.062 kB / 0.6272 GB, free: 5.898 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002003/0.8216, allocations: 0.7428 MB / 0.6279 GB, free: 5.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008962/0.8225, allocations: 117.8 kB / 0.6281 GB, free: 5.043 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003654/0.8262, allocations: 1.676 MB / 0.6297 GB, free: 3.047 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001292/0.8275, allocations: 1.029 MB / 0.6307 GB, free: 1.992 MB / 442.7 MB Notification: Performance of SimCode: time 4.71e-07/0.8275, allocations: 4 kB / 0.6307 GB, free: 1.988 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat