Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.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) 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(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 183.8 kB / 8.138 MB, free: 2.223 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.111/1.111, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0009032/0.0009032, allocations: 93.5 kB / 280.8 MB, free: 1.328 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09043/0.09136, allocations: 55.81 MB / 336.6 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.2709, allocations: 50.4 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0866/0.3575, allocations: 81.74 MB / 468.7 MB, free: 5.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.3578, allocations: 72.62 kB / 468.8 MB, free: 5 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.02431/0.3821, allocations: 8.661 MB / 477.5 MB, free: 12.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3822, allocations: 8 kB / 477.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.3823, allocations: 51.34 kB / 477.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005835/0.3829, allocations: 360.9 kB / 477.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.383, allocations: 12.5 kB / 477.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.715e-05/0.3831, allocations: 27.91 kB / 477.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000484/0.3835, allocations: 245.5 kB / 478.2 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005444/0.3841, allocations: 329.7 kB / 478.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.519e-05/0.3841, allocations: 11.94 kB / 478.5 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.166e-05/0.3842, allocations: 0 / 478.5 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.3842, allocations: 12.47 kB / 478.5 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002218/0.3864, allocations: 1.593 MB / 480.1 MB, free: 9.523 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003794/0.3868, allocations: 165.9 kB / 480.3 MB, free: 9.352 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.387, allocations: 104.9 kB / 480.4 MB, free: 9.246 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.123e-05/0.387, allocations: 4 kB / 480.4 MB, free: 9.242 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.3871, allocations: 41 kB / 480.4 MB, free: 9.195 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 1.793e-06/0.3871, allocations: 0 / 480.4 MB, free: 9.195 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.00158/0.3887, allocations: 0.9367 MB / 481.3 MB, free: 8.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.3887, allocations: 77.11 kB / 481.4 MB, free: 8.066 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003429/0.3891, allocations: 293.9 kB / 481.7 MB, free: 7.777 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.3891, allocations: 25.7 kB / 481.7 MB, free: 7.746 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.3892, allocations: 196.1 kB / 481.9 MB, free: 7.551 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.603e-05/0.3893, allocations: 110.4 kB / 482 MB, free: 7.441 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.56e-05/0.3893, allocations: 4 kB / 482 MB, free: 7.438 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.3895, allocations: 350.7 kB / 482.4 MB, free: 7.086 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.3897, allocations: 104.9 kB / 482.5 MB, free: 6.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.3899, allocations: 184 kB / 482.7 MB, free: 6.773 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.3901, allocations: 112.5 kB / 482.8 MB, free: 6.664 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.3901, allocations: 4 kB / 482.8 MB, free: 6.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005543/0.3907, allocations: 357 kB / 483.1 MB, free: 6.305 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003103/0.391, allocations: 0.793 MB / 483.9 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.391, allocations: 0 / 483.9 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.391, allocations: 8 kB / 483.9 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.3921, allocations: 283.6 kB / 484.2 MB, free: 5.168 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006211/0.3927, allocations: 0.6914 MB / 484.9 MB, free: 4.453 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000387/0.3931, allocations: 44.06 kB / 484.9 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.412e-05/0.3932, allocations: 19.98 kB / 484.9 MB, free: 4.391 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.476e-06/0.3932, allocations: 4 kB / 485 MB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004749/0.3936, allocations: 271.7 kB / 485.2 MB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.3937, allocations: 4.938 kB / 485.2 MB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.416e-06/0.3937, allocations: 12.59 kB / 485.2 MB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000567/0.3943, allocations: 132.1 kB / 485.4 MB, free: 3.977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3943, allocations: 4 kB / 485.4 MB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003049/0.3946, allocations: 47.95 kB / 485.4 MB, free: 3.926 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.3946, allocations: 16 kB / 485.4 MB, free: 3.91 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.0001111/0.3947, allocations: 112.9 kB / 485.5 MB, free: 3.793 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.994e-05/0.3948, allocations: 36.56 kB / 485.6 MB, free: 3.758 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.279e-05/0.3949, allocations: 44.09 kB / 485.6 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.3949, allocations: 0 / 485.6 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3949, allocations: 4 kB / 485.6 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.3949, allocations: 7.984 kB / 485.6 MB, free: 3.703 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.396, allocations: 0.7412 MB / 486.4 MB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.396, allocations: 0 / 486.4 MB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004815/0.3965, allocations: 108 kB / 486.5 MB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.3965, allocations: 4 kB / 486.5 MB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.939e-05/0.3966, allocations: 4 kB / 486.5 MB, free: 2.797 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.3966, allocations: 4 kB / 486.5 MB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3966, allocations: 7.938 kB / 486.5 MB, free: 2.785 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00069/0.3973, allocations: 0.5434 MB / 487 MB, free: 2.191 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009321/0.3982, allocations: 1.041 MB / 488.1 MB, free: 1.094 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.3984, allocations: 140.6 kB / 488.2 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.716e-05/0.3984, allocations: 4 kB / 488.2 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003418/0.3988, allocations: 47.95 kB / 488.3 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.05e-05/0.3989, allocations: 23.97 kB / 488.3 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.905e-05/0.3989, allocations: 4 kB / 488.3 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002107/0.3991, allocations: 220.6 kB / 488.5 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001625/0.4007, allocations: 119.9 kB / 488.6 MB, free: 0.5273 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.0001443/0.4009, allocations: 115.3 kB / 488.7 MB, free: 416 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.4023, allocations: 0.6324 MB / 489.4 MB, free: 15.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.4023, allocations: 0 / 489.4 MB, free: 15.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002055/0.4025, allocations: 123.9 kB / 489.5 MB, free: 15.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005272/0.4031, allocations: 73.84 kB / 489.6 MB, free: 15.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.4048, allocations: 0.8145 MB / 490.4 MB, free: 14.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005371/0.4053, allocations: 0.8733 MB / 491.3 MB, free: 13.83 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4053, allocations: 0 / 491.3 MB, free: 13.83 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat