Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.001373/0.001373, allocations: 191.2 kB / 8.533 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 225.5 MB / 234.4 MB, free: 3.367 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009394/0.0009396, allocations: 88.41 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1228/0.1238, allocations: 56.89 MB / 343.2 MB, free: 8.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.2278, allocations: 51.47 MB / 394.7 MB, free: 5.066 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2839/0.5118, allocations: 78.68 MB / 473.4 MB, free: 13.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.5121, allocations: 72.44 kB / 473.4 MB, free: 13.4 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.007015/0.5191, allocations: 2.514 MB / 476 MB, free: 11.87 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.5192, allocations: 8.188 kB / 476 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.257e-05/0.5192, allocations: 19.19 kB / 476 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.5195, allocations: 203.6 kB / 476.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.5195, allocations: 4 kB / 476.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.047e-05/0.5195, allocations: 8 kB / 476.2 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000172/0.5197, allocations: 60.31 kB / 476.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003316/0.52, allocations: 208.2 kB / 476.5 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.5201, allocations: 5.031 kB / 476.5 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.5201, allocations: 0 / 476.5 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.5201, allocations: 8 kB / 476.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005076/0.5206, allocations: 0.5581 MB / 477 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002377/0.5209, allocations: 119.6 kB / 477.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.284e-05/0.521, allocations: 57.09 kB / 477.2 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.521, allocations: 4 kB / 477.2 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.81e-05/0.521, allocations: 42.25 kB / 477.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.765e-06/0.521, allocations: 0 / 477.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002996/0.5213, allocations: 113.3 kB / 477.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.5214, allocations: 107 kB / 477.5 MB, free: 10.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.781e-05/0.5215, allocations: 121.8 kB / 477.6 MB, free: 10.31 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.5215, allocations: 25.7 kB / 477.6 MB, free: 10.28 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.662e-05/0.5216, allocations: 106.8 kB / 477.7 MB, free: 10.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.559e-05/0.5216, allocations: 22.41 kB / 477.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-06/0.5216, allocations: 0 / 477.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.538e-05/0.5217, allocations: 329 kB / 478.1 MB, free: 9.844 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.676e-05/0.5217, allocations: 18.56 kB / 478.1 MB, free: 9.828 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.19e-05/0.5218, allocations: 127 kB / 478.2 MB, free: 9.672 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.251e-05/0.5219, allocations: 46.09 kB / 478.2 MB, free: 9.645 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.5219, allocations: 0 / 478.2 MB, free: 9.645 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000205/0.5221, allocations: 136 kB / 478.4 MB, free: 9.527 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.5221, allocations: 8.734 kB / 478.4 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.5221, allocations: 4 kB / 478.4 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.5221, allocations: 8 kB / 478.4 MB, free: 9.512 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.5223, allocations: 50.28 kB / 478.4 MB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.5223, allocations: 4 kB / 478.4 MB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.5224, allocations: 23.34 kB / 478.5 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.5225, allocations: 11.91 kB / 478.5 MB, free: 9.438 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 5.746e-05/0.5225, allocations: 112.9 kB / 478.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.5227, allocations: 83.11 kB / 478.7 MB, free: 9.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.958e-05/0.5228, allocations: 14.94 kB / 478.7 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.5228, allocations: 0 / 478.7 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.5228, allocations: 4 kB / 478.7 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.5228, allocations: 11.23 kB / 478.7 MB, free: 9.234 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001984/0.523, allocations: 173.5 kB / 478.9 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.523, allocations: 0.8125 kB / 478.9 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.5232, allocations: 38.83 kB / 478.9 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.5232, allocations: 4 kB / 478.9 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.5232, allocations: 3.938 kB / 478.9 MB, free: 9.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.5232, allocations: 4 kB / 478.9 MB, free: 9.016 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5232, allocations: 4 kB / 478.9 MB, free: 9.012 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002513/0.5235, allocations: 356 kB / 479.3 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003283/0.5238, allocations: 0.7631 MB / 480 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.239e-05/0.5239, allocations: 94.41 kB / 480.1 MB, free: 7.848 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.5239, allocations: 0.6562 kB / 480.1 MB, free: 7.848 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.5241, allocations: 14.5 kB / 480.1 MB, free: 7.836 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.8e-05/0.5241, allocations: 5.734 kB / 480.1 MB, free: 7.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.5241, allocations: 7.375 kB / 480.2 MB, free: 7.828 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.83e-05/0.5242, allocations: 91.92 kB / 480.2 MB, free: 7.746 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009371/0.5251, allocations: 32.58 kB / 480.3 MB, free: 7.719 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.0001124/0.5252, allocations: 103.8 kB / 480.4 MB, free: 7.609 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001815/0.5254, allocations: 83.41 kB / 480.5 MB, free: 7.547 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.5254, allocations: 0 / 480.5 MB, free: 7.547 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.922e-05/0.5255, allocations: 15.44 kB / 480.5 MB, free: 7.535 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003332/0.5258, allocations: 49.64 kB / 480.5 MB, free: 7.504 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004845/0.5263, allocations: 281.7 kB / 480.8 MB, free: 7.246 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.5265, allocations: 0.7373 MB / 481.5 MB, free: 6.504 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5265, allocations: 4 kB / 481.5 MB, free: 6.5 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1)