Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.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) 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(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",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.00115/0.00115, allocations: 205.1 kB / 8.545 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001089/0.001089, allocations: 95.09 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1351/0.1362, allocations: 56.89 MB / 343.2 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.2483, allocations: 51.48 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2939/0.5422, allocations: 82.54 MB / 477.2 MB, free: 10.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002112/0.5424, allocations: 75.03 kB / 477.3 MB, free: 10.21 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.02377/0.5662, allocations: 8.69 MB / 486 MB, free: 3.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.5663, allocations: 11.94 kB / 486 MB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.753e-05/0.5664, allocations: 51.38 kB / 486.1 MB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005569/0.567, allocations: 353.7 kB / 486.4 MB, free: 3.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.567, allocations: 16.47 kB / 486.4 MB, free: 3.004 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.414e-05/0.5671, allocations: 24 kB / 486.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004471/0.5675, allocations: 240.5 kB / 486.7 MB, free: 2.832 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004734/0.568, allocations: 340.3 kB / 487 MB, free: 2.551 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.568, allocations: 4 kB / 487 MB, free: 2.547 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.5681, allocations: 3.906 kB / 487 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.469e-05/0.5681, allocations: 10.91 kB / 487 MB, free: 2.535 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001808/0.5699, allocations: 1.582 MB / 488.6 MB, free: 1.098 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003589/0.5703, allocations: 170.4 kB / 488.8 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.5705, allocations: 104.5 kB / 488.9 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.075e-05/0.5705, allocations: 11.98 kB / 488.9 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/0.5705, allocations: 38.47 kB / 488.9 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 3.807e-06/0.5706, allocations: 0 / 488.9 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001418/0.572, allocations: 0.9276 MB / 489.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.5721, allocations: 85.11 kB / 489.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/0.5724, allocations: 280.5 kB / 490.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.5724, allocations: 25.7 kB / 490.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.5726, allocations: 204.5 kB / 490.4 MB, free: 15.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.664e-05/0.5727, allocations: 108.1 kB / 490.6 MB, free: 15.35 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.582e-05/0.5727, allocations: 0 / 490.6 MB, free: 15.35 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.5728, allocations: 352.9 kB / 490.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.5731, allocations: 99.81 kB / 491 MB, free: 14.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002348/0.5733, allocations: 190.1 kB / 491.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002072/0.5735, allocations: 125 kB / 491.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.5735, allocations: 0 / 491.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005462/0.5741, allocations: 355.3 kB / 491.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002553/0.5743, allocations: 0.7807 MB / 492.4 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.5744, allocations: 0 / 492.4 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.5744, allocations: 11.89 kB / 492.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.5755, allocations: 283.7 kB / 492.7 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007131/0.5762, allocations: 0.6899 MB / 493.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003906/0.5766, allocations: 49.92 kB / 493.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.222e-05/0.5766, allocations: 15.81 kB / 493.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.412e-06/0.5766, allocations: 0 / 493.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004539/0.5771, allocations: 288.8 kB / 493.8 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.5771, allocations: 4 kB / 493.8 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.705e-06/0.5771, allocations: 4 kB / 493.8 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005656/0.5777, allocations: 135.1 kB / 493.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.5777, allocations: 4 kB / 493.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003047/0.578, allocations: 35.97 kB / 493.9 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/0.5781, allocations: 16.62 kB / 494 MB, free: 12.16 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001345/0.5782, allocations: 120.3 kB / 494.1 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.281e-05/0.5783, allocations: 39.53 kB / 494.1 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001042/0.5784, allocations: 47.02 kB / 494.2 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.5784, allocations: 4 kB / 494.2 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.5784, allocations: 0 / 494.2 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.5784, allocations: 0 / 494.2 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.5795, allocations: 0.7444 MB / 494.9 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.5795, allocations: 4 kB / 494.9 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.58, allocations: 101 kB / 495 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.5801, allocations: 4 kB / 495 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.997e-05/0.5801, allocations: 4 kB / 495 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.5801, allocations: 0 / 495 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.5801, allocations: 4 kB / 495 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007183/0.5809, allocations: 0.5495 MB / 495.6 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009212/0.5818, allocations: 1.046 MB / 496.6 MB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.5819, allocations: 135.7 kB / 496.7 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.927e-05/0.582, allocations: 5.875 kB / 496.7 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003497/0.5824, allocations: 47.95 kB / 496.8 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.2e-05/0.5824, allocations: 19.66 kB / 496.8 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.5825, allocations: 11.81 kB / 496.8 MB, free: 9.609 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002159/0.5827, allocations: 218.3 kB / 497 MB, free: 9.438 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001821/0.5845, allocations: 127.8 kB / 497.2 MB, free: 9.312 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.0001502/0.5847, allocations: 103.1 kB / 497.3 MB, free: 9.207 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.5861, allocations: 0.6324 MB / 497.9 MB, free: 8.707 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.5861, allocations: 448 / 497.9 MB, free: 8.707 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002042/0.5863, allocations: 126 kB / 498 MB, free: 8.621 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005923/0.5869, allocations: 82.58 kB / 498.1 MB, free: 8.562 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.5887, allocations: 0.7984 MB / 498.9 MB, free: 7.793 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005427/0.5893, allocations: 0.8806 MB / 499.8 MB, free: 6.891 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5893, allocations: 0 / 499.8 MB, free: 6.891 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat