Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",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.0009723/0.0009723, allocations: 181.1 kB / 8.134 MB, free: 2.219 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.115/1.115, allocations: 221.4 MB / 229.9 MB, free: 3.23 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.0008913/0.0008913, allocations: 96.69 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09597/0.09689, allocations: 55.81 MB / 336.6 MB, free: 9.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.2952, allocations: 50.39 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07544/0.3707, allocations: 76.75 MB / 463.7 MB, free: 9.988 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001753/0.3709, allocations: 75.89 kB / 463.8 MB, free: 9.914 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.005932/0.3769, allocations: 2.279 MB / 466.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.3769, allocations: 11.94 kB / 466.1 MB, free: 7.605 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.788e-05/0.377, allocations: 15.81 kB / 466.1 MB, free: 7.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.3772, allocations: 185.5 kB / 466.3 MB, free: 7.371 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.3772, allocations: 4 kB / 466.3 MB, free: 7.367 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.5e-05/0.3772, allocations: 12 kB / 466.3 MB, free: 7.355 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001151/0.3773, allocations: 41.23 kB / 466.4 MB, free: 7.316 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001485/0.3775, allocations: 96.41 kB / 466.5 MB, free: 7.211 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.3775, allocations: 4 kB / 466.5 MB, free: 7.207 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.3775, allocations: 0 / 466.5 MB, free: 7.207 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.3775, allocations: 0 / 466.5 MB, free: 7.207 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006449/0.3782, allocations: 0.5173 MB / 467 MB, free: 6.633 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.807e-05/0.3783, allocations: 37.72 kB / 467 MB, free: 6.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.559e-05/0.3783, allocations: 28.91 kB / 467 MB, free: 6.559 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.3783, allocations: 4 kB / 467 MB, free: 6.555 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.3784, allocations: 35.06 kB / 467.1 MB, free: 6.512 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.405e-06/0.3784, allocations: 3.984 kB / 467.1 MB, free: 6.508 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001872/0.3786, allocations: 69.73 kB / 467.2 MB, free: 6.434 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.629e-05/0.3786, allocations: 55.41 kB / 467.2 MB, free: 6.367 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.57e-05/0.3787, allocations: 115.5 kB / 467.3 MB, free: 6.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.3787, allocations: 25.7 kB / 467.3 MB, free: 6.219 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.705e-05/0.3788, allocations: 112.6 kB / 467.5 MB, free: 6.105 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.3788, allocations: 23.66 kB / 467.5 MB, free: 6.082 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.458e-06/0.3788, allocations: 0 / 467.5 MB, free: 6.082 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.3789, allocations: 322.7 kB / 467.8 MB, free: 5.758 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.593e-05/0.379, allocations: 20 kB / 467.8 MB, free: 5.738 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.093e-05/0.379, allocations: 52.8 kB / 467.9 MB, free: 5.672 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.716e-05/0.3791, allocations: 29.23 kB / 467.9 MB, free: 5.645 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3791, allocations: 0 / 467.9 MB, free: 5.645 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001519/0.3792, allocations: 101.5 kB / 468 MB, free: 5.539 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.3792, allocations: 4 kB / 468 MB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3793, allocations: 7.984 kB / 468 MB, free: 5.527 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.706e-06/0.3793, allocations: 0.8438 kB / 468 MB, free: 5.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001716/0.3794, allocations: 31.98 kB / 468 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.3795, allocations: 0.9375 kB / 468 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.637e-05/0.3796, allocations: 27.89 kB / 468.1 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.3796, allocations: 4 kB / 468.1 MB, free: 5.465 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 5.848e-05/0.3796, allocations: 108 kB / 468.2 MB, free: 5.355 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.033e-05/0.3797, allocations: 7.906 kB / 468.2 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.695e-05/0.3797, allocations: 8.375 kB / 468.2 MB, free: 5.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.3797, allocations: 4 kB / 468.2 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.3797, allocations: 0.6562 kB / 468.2 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.3797, allocations: 3.906 kB / 468.2 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.3799, allocations: 170.8 kB / 468.4 MB, free: 5.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3799, allocations: 0 / 468.4 MB, free: 5.129 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.3801, allocations: 27.98 kB / 468.4 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.3801, allocations: 0 / 468.4 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.3801, allocations: 0.8125 kB / 468.4 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3801, allocations: 96 / 468.4 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.3801, allocations: 7.844 kB / 468.4 MB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001844/0.3803, allocations: 195.4 kB / 468.6 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003204/0.3806, allocations: 0.5836 MB / 469.2 MB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.735e-05/0.3807, allocations: 81.02 kB / 469.3 MB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.3807, allocations: 8 kB / 469.3 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.3808, allocations: 13.33 kB / 469.3 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.122e-05/0.3808, allocations: 7.984 kB / 469.3 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.042e-06/0.3809, allocations: 0 / 469.3 MB, free: 4.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.553e-05/0.3809, allocations: 105.5 kB / 469.4 MB, free: 4.059 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007831/0.3817, allocations: 19.91 kB / 469.4 MB, free: 4.039 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001033/0.3818, allocations: 103.2 kB / 469.5 MB, free: 3.926 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001194/0.3819, allocations: 55.94 kB / 469.6 MB, free: 3.871 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.382, allocations: 0 / 469.6 MB, free: 3.871 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.638e-05/0.382, allocations: 16 kB / 469.6 MB, free: 3.855 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002169/0.3822, allocations: 15.98 kB / 469.6 MB, free: 3.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004971/0.3827, allocations: 270 kB / 469.9 MB, free: 3.555 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.383, allocations: 0.723 MB / 470.6 MB, free: 2.805 MB / 346.7 MB Notification: Performance of SimCode: time 2.91e-07/0.383, allocations: 0 / 470.6 MB, free: 2.805 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat