Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.000952/0.000952, allocations: 181.7 kB / 8.134 MB, free: 2.18 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.12/1.12, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0009118/0.0009118, allocations: 102.3 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09548/0.09642, allocations: 55.81 MB / 336.6 MB, free: 9.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.2924, allocations: 50.39 MB / 387 MB, free: 37.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08402/0.3765, allocations: 78.07 MB / 465.1 MB, free: 8.676 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001913/0.3767, allocations: 79.89 kB / 465.1 MB, free: 8.598 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.007661/0.3844, allocations: 2.836 MB / 468 MB, free: 5.746 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3844, allocations: 8 kB / 468 MB, free: 5.738 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.903e-05/0.3845, allocations: 27.72 kB / 468 MB, free: 5.711 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002401/0.3847, allocations: 214.7 kB / 468.2 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.3847, allocations: 7.938 kB / 468.2 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.941e-05/0.3848, allocations: 9.25 kB / 468.2 MB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001627/0.385, allocations: 67.98 kB / 468.3 MB, free: 5.379 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00034/0.3853, allocations: 210.5 kB / 468.5 MB, free: 5.148 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.3853, allocations: 0 / 468.5 MB, free: 5.148 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.3853, allocations: 4 kB / 468.5 MB, free: 5.145 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.3854, allocations: 0 / 468.5 MB, free: 5.145 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005713/0.3859, allocations: 0.5575 MB / 469.1 MB, free: 4.523 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.3862, allocations: 122.8 kB / 469.2 MB, free: 4.379 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.113e-05/0.3863, allocations: 58.48 kB / 469.3 MB, free: 4.312 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.3863, allocations: 14.05 kB / 469.3 MB, free: 4.301 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.3863, allocations: 34.5 kB / 469.3 MB, free: 4.258 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.3863, allocations: 0 / 469.3 MB, free: 4.258 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.00025/0.3866, allocations: 109.6 kB / 469.4 MB, free: 4.145 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.3867, allocations: 114.8 kB / 469.5 MB, free: 4.008 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.3868, allocations: 137.3 kB / 469.7 MB, free: 3.867 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.3868, allocations: 29.7 kB / 469.7 MB, free: 3.832 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.48e-05/0.3868, allocations: 104.5 kB / 469.8 MB, free: 3.727 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.207e-05/0.3869, allocations: 27.64 kB / 469.8 MB, free: 3.699 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-06/0.3869, allocations: 0 / 469.8 MB, free: 3.699 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.387, allocations: 326.8 kB / 470.1 MB, free: 3.371 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.168e-05/0.3871, allocations: 20.31 kB / 470.1 MB, free: 3.348 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.215e-05/0.3872, allocations: 118.9 kB / 470.3 MB, free: 3.184 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.049e-05/0.3872, allocations: 39.92 kB / 470.3 MB, free: 3.145 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3872, allocations: 4 kB / 470.3 MB, free: 3.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000214/0.3875, allocations: 149.2 kB / 470.5 MB, free: 2.988 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.3875, allocations: 4 kB / 470.5 MB, free: 2.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3875, allocations: 4.469 kB / 470.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.3875, allocations: 5.625 kB / 470.5 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.3877, allocations: 55.91 kB / 470.5 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.3877, allocations: 5.797 kB / 470.5 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.3878, allocations: 19.84 kB / 470.5 MB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.575e-05/0.3878, allocations: 16.86 kB / 470.6 MB, free: 2.883 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 7.967e-05/0.3879, allocations: 112.8 kB / 470.7 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000147/0.3881, allocations: 86.38 kB / 470.8 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.174e-05/0.3881, allocations: 16.5 kB / 470.8 MB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.3882, allocations: 3.906 kB / 470.8 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.3882, allocations: 4 kB / 470.8 MB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.3882, allocations: 3.984 kB / 470.8 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002184/0.3884, allocations: 178 kB / 471 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.3884, allocations: 1.375 kB / 471 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.3886, allocations: 47.91 kB / 471 MB, free: 2.391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3886, allocations: 0 / 471 MB, free: 2.391 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.3886, allocations: 4.844 kB / 471 MB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.3887, allocations: 4 kB / 471 MB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.3887, allocations: 0 / 471 MB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003159/0.389, allocations: 362.3 kB / 471.4 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004496/0.3894, allocations: 0.7574 MB / 472.1 MB, free: 1.207 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.133e-05/0.3895, allocations: 109.2 kB / 472.2 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.586e-05/0.3896, allocations: 4 kB / 472.2 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.3897, allocations: 17.11 kB / 472.3 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.9e-05/0.3898, allocations: 0 / 472.3 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.3898, allocations: 7.906 kB / 472.3 MB, free: 1.055 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.846e-05/0.3899, allocations: 119.3 kB / 472.4 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008649/0.3907, allocations: 24 kB / 472.4 MB, free: 0.9141 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0001161/0.3909, allocations: 107.1 kB / 472.5 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001515/0.391, allocations: 79.86 kB / 472.6 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.391, allocations: 0 / 472.6 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.525e-05/0.3911, allocations: 20.88 kB / 472.6 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003368/0.3914, allocations: 56.66 kB / 472.7 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005689/0.392, allocations: 309.5 kB / 473 MB, free: 332 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003391/0.3923, allocations: 0.751 MB / 473.7 MB, free: 15.55 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3923, allocations: 0 / 473.7 MB, free: 15.55 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1)