Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 184 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.147/1.147, allocations: 221.4 MB / 230 MB, free: 3.008 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.0009864/0.0009863, allocations: 102.2 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09704/0.09806, allocations: 55.8 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1942/0.2923, allocations: 50.39 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07998/0.3723, allocations: 77.85 MB / 464.9 MB, free: 9.016 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001753/0.3726, allocations: 83.23 kB / 464.9 MB, free: 8.938 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.006396/0.379, allocations: 2.456 MB / 467.4 MB, free: 6.465 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.042e-05/0.379, allocations: 11.94 kB / 467.4 MB, free: 6.453 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.431e-05/0.3791, allocations: 15.81 kB / 467.4 MB, free: 6.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001808/0.3792, allocations: 194.9 kB / 467.6 MB, free: 6.207 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.3793, allocations: 4 kB / 467.6 MB, free: 6.203 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.819e-05/0.3793, allocations: 8 kB / 467.6 MB, free: 6.195 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000144/0.3794, allocations: 63.92 kB / 467.7 MB, free: 6.133 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000311/0.3798, allocations: 206.6 kB / 467.9 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.3798, allocations: 2.438 kB / 467.9 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.3798, allocations: 7.906 kB / 467.9 MB, free: 5.898 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.3798, allocations: 4 kB / 467.9 MB, free: 5.895 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005356/0.3804, allocations: 0.5614 MB / 468.5 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000231/0.3806, allocations: 122.8 kB / 468.6 MB, free: 5.125 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.99e-05/0.3807, allocations: 50.58 kB / 468.6 MB, free: 5.066 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.3807, allocations: 4 kB / 468.6 MB, free: 5.062 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.3808, allocations: 46.77 kB / 468.7 MB, free: 5.008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.3808, allocations: 0 / 468.7 MB, free: 5.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002395/0.381, allocations: 105.4 kB / 468.8 MB, free: 4.898 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/0.3811, allocations: 106.8 kB / 468.9 MB, free: 4.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.265e-05/0.3812, allocations: 120.4 kB / 469 MB, free: 4.645 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.3812, allocations: 25.7 kB / 469 MB, free: 4.613 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.339e-05/0.3812, allocations: 108 kB / 469.1 MB, free: 4.504 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.97e-05/0.3813, allocations: 31.69 kB / 469.2 MB, free: 4.473 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-06/0.3813, allocations: 0 / 469.2 MB, free: 4.473 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.277e-05/0.3814, allocations: 318.8 kB / 469.5 MB, free: 4.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.143e-05/0.3814, allocations: 21.03 kB / 469.5 MB, free: 4.129 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.543e-05/0.3815, allocations: 122.2 kB / 469.6 MB, free: 3.961 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.412e-05/0.3816, allocations: 45.14 kB / 469.7 MB, free: 3.918 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3816, allocations: 0 / 469.7 MB, free: 3.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002062/0.3818, allocations: 141.5 kB / 469.8 MB, free: 3.773 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.3818, allocations: 8 kB / 469.8 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3818, allocations: 4 kB / 469.8 MB, free: 3.762 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.3818, allocations: 4.75 kB / 469.8 MB, free: 3.758 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.382, allocations: 53.09 kB / 469.9 MB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.382, allocations: 8.312 kB / 469.9 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.3822, allocations: 23.83 kB / 469.9 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.3822, allocations: 12 kB / 469.9 MB, free: 3.664 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 6.199e-05/0.3822, allocations: 115.7 kB / 470 MB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.3824, allocations: 82.47 kB / 470.1 MB, free: 3.461 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.573e-05/0.3825, allocations: 20.48 kB / 470.1 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.3825, allocations: 4 kB / 470.1 MB, free: 3.438 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.3825, allocations: 4 kB / 470.1 MB, free: 3.434 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3825, allocations: 0 / 470.1 MB, free: 3.434 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002025/0.3827, allocations: 170.1 kB / 470.3 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.3827, allocations: 0.75 kB / 470.3 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001947/0.3829, allocations: 43.91 kB / 470.3 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.3829, allocations: 7.844 kB / 470.3 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.3829, allocations: 0 / 470.3 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.3829, allocations: 8.75 kB / 470.4 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3829, allocations: 0 / 470.4 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002867/0.3832, allocations: 346.9 kB / 470.7 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000404/0.3837, allocations: 0.765 MB / 471.5 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.722e-05/0.3837, allocations: 88.92 kB / 471.5 MB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.955e-05/0.3837, allocations: 5.25 kB / 471.6 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.3839, allocations: 12.05 kB / 471.6 MB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.839e-05/0.3839, allocations: 11.92 kB / 471.6 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.3839, allocations: 8 kB / 471.6 MB, free: 1.859 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.867e-05/0.384, allocations: 92.83 kB / 471.7 MB, free: 1.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008628/0.3849, allocations: 32.12 kB / 471.7 MB, free: 1.738 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.0001067/0.385, allocations: 103.3 kB / 471.8 MB, free: 1.629 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001578/0.3851, allocations: 91.86 kB / 471.9 MB, free: 1.539 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3852, allocations: 0 / 471.9 MB, free: 1.539 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.091e-05/0.3852, allocations: 15.98 kB / 471.9 MB, free: 1.523 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.3855, allocations: 47.55 kB / 472 MB, free: 1.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004909/0.386, allocations: 291 kB / 472.2 MB, free: 1.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/0.3863, allocations: 0.7432 MB / 473 MB, free: 420 kB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3863, allocations: 0 / 473 MB, free: 420 kB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1)