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: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001073/0.001073, allocations: 203.8 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.167/1.167, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008715/0.0008716, allocations: 94.44 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1656/0.1656, allocations: 45.14 MB / 383.3 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2017/0.3673, allocations: 69.37 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08869/0.456, allocations: 63.24 MB / 0.5039 GB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2847/0.7408, allocations: 89.5 MB / 0.5913 GB, free: 13.29 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001764/0.741, allocations: 56.17 kB / 0.5913 GB, free: 13.27 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.03696/0.778, allocations: 12.53 MB / 0.6036 GB, free: 2.52 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.778, allocations: 19.94 kB / 0.6036 GB, free: 2.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.7781, allocations: 59.44 kB / 0.6036 GB, free: 2.441 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004951/0.7786, allocations: 358.8 kB / 0.604 GB, free: 2.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000407/0.779, allocations: 265 kB / 0.6042 GB, free: 1.801 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.7792, allocations: 27.98 kB / 0.6042 GB, free: 1.773 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001317/0.7805, allocations: 0.8078 MB / 0.605 GB, free: 1.219 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008379/0.7813, allocations: 0.5699 MB / 0.6056 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.7814, allocations: 6.719 kB / 0.6056 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.403e-05/0.7814, allocations: 4 kB / 0.6056 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.7815, allocations: 8 kB / 0.6056 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002698/0.7842, allocations: 2.029 MB / 0.6076 GB, free: 15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.7853, allocations: 458.3 kB / 0.608 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004425/0.7857, allocations: 298.9 kB / 0.6083 GB, free: 14.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.499e-05/0.7858, allocations: 8.562 kB / 0.6083 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.7859, allocations: 41.8 kB / 0.6084 GB, free: 14.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.003e-06/0.7859, allocations: 4 kB / 0.6084 GB, free: 14.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.02165/0.8075, allocations: 7.194 MB / 0.6154 GB, free: 8.996 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.8076, allocations: 90.11 kB / 0.6155 GB, free: 8.891 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004287/0.8081, allocations: 350.7 kB / 0.6158 GB, free: 8.617 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001369/0.8082, allocations: 25.7 kB / 0.6158 GB, free: 8.586 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.8083, allocations: 181.4 kB / 0.616 GB, free: 8.418 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003591/0.8087, allocations: 389.4 kB / 0.6164 GB, free: 8.078 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.8088, allocations: 4 kB / 0.6164 GB, free: 8.074 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.809, allocations: 373.3 kB / 0.6167 GB, free: 7.727 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001454/0.8105, allocations: 0.9528 MB / 0.6177 GB, free: 7.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/0.812, allocations: 1.094 MB / 0.6187 GB, free: 6.648 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.8133, allocations: 0.8017 MB / 0.6195 GB, free: 6.219 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.8133, allocations: 4 kB / 0.6195 GB, free: 6.215 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003332/0.8166, allocations: 2.044 MB / 0.6215 GB, free: 5.023 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.8166, allocations: 4 kB / 0.6215 GB, free: 5.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.8166, allocations: 4 kB / 0.6215 GB, free: 5.016 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.8167, allocations: 11.98 kB / 0.6215 GB, free: 5.004 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003045/0.8197, allocations: 495.2 kB / 0.622 GB, free: 4.531 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.8197, allocations: 8 kB / 0.622 GB, free: 4.523 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002157/0.8219, allocations: 279.6 kB / 0.6223 GB, free: 4.246 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002197/0.8221, allocations: 43.61 kB / 0.6223 GB, free: 4.211 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.0003357/0.8225, allocations: 128.2 kB / 0.6225 GB, free: 4.082 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.8227, allocations: 67.23 kB / 0.6225 GB, free: 4.016 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001312/0.8229, allocations: 70.84 kB / 0.6226 GB, free: 3.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.8229, allocations: 12 kB / 0.6226 GB, free: 3.969 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.8229, allocations: 0 / 0.6226 GB, free: 3.969 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.8229, allocations: 3.984 kB / 0.6226 GB, free: 3.965 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008682/0.8316, allocations: 4.739 MB / 0.6272 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.965e-05/0.8316, allocations: 24 kB / 0.6272 GB, free: 15.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001714/0.8334, allocations: 434.5 kB / 0.6277 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.26e-05/0.8334, allocations: 35.91 kB / 0.6277 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.8335, allocations: 28 kB / 0.6277 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.703e-05/0.8336, allocations: 39.86 kB / 0.6278 GB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.312e-05/0.8336, allocations: 39.81 kB / 0.6278 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003342/0.8369, allocations: 3.245 MB / 0.631 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004271/0.8412, allocations: 4.151 MB / 0.635 GB, free: 7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003746/0.8416, allocations: 244.2 kB / 0.6353 GB, free: 6.742 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.8418, allocations: 31.97 kB / 0.6353 GB, free: 6.711 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.8433, allocations: 263.8 kB / 0.6355 GB, free: 6.453 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004238/0.8437, allocations: 219.2 kB / 0.6357 GB, free: 6.238 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.8438, allocations: 59.98 kB / 0.6358 GB, free: 6.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003033/0.8441, allocations: 264.6 kB / 0.6361 GB, free: 5.922 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001568/0.8457, allocations: 204 kB / 0.6363 GB, free: 5.723 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.0002691/0.846, allocations: 148.4 kB / 0.6364 GB, free: 5.57 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002747/0.8487, allocations: 1.616 MB / 0.638 GB, free: 3.961 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.8487, allocations: 4 kB / 0.638 GB, free: 3.957 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00201/0.8508, allocations: 0.7536 MB / 0.6387 GB, free: 3.207 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009514/0.8517, allocations: 110.9 kB / 0.6388 GB, free: 3.098 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00376/0.8555, allocations: 1.675 MB / 0.6405 GB, free: 1.098 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001372/0.8569, allocations: 1.041 MB / 0.6415 GB, free: 32 kB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/0.8569, allocations: 0 / 0.6415 GB, free: 32 kB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat