Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.00115/0.00115, allocations: 191.3 kB / 8.534 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.229/1.229, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009047/0.0009047, allocations: 94.7 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1178/0.1187, allocations: 56.89 MB / 343.2 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09706/0.2158, allocations: 51.47 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2607/0.4765, allocations: 78.64 MB / 473.3 MB, free: 13.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00018/0.4767, allocations: 68.39 kB / 473.4 MB, free: 13.16 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.006548/0.4833, allocations: 2.5 MB / 475.9 MB, free: 11.63 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.651e-05/0.4834, allocations: 8 kB / 475.9 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.497e-05/0.4834, allocations: 15.81 kB / 475.9 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.4836, allocations: 199.2 kB / 476.1 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.4836, allocations: 4 kB / 476.1 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.886e-05/0.4837, allocations: 11.25 kB / 476.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001539/0.4838, allocations: 56.28 kB / 476.2 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003107/0.4841, allocations: 197.5 kB / 476.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.4842, allocations: 0 / 476.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.4842, allocations: 7.891 kB / 476.4 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.4842, allocations: 4 kB / 476.4 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004741/0.4847, allocations: 0.5508 MB / 476.9 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.4848, allocations: 120.8 kB / 477.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.329e-05/0.4849, allocations: 52.14 kB / 477.1 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.485, allocations: 11.62 kB / 477.1 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.803e-05/0.485, allocations: 30.56 kB / 477.2 MB, free: 10.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.515e-06/0.485, allocations: 0 / 477.2 MB, free: 10.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002487/0.4853, allocations: 110.1 kB / 477.3 MB, free: 10.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.4853, allocations: 111.8 kB / 477.4 MB, free: 10.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.441e-05/0.4854, allocations: 114.4 kB / 477.5 MB, free: 10.1 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.071e-05/0.4854, allocations: 25.7 kB / 477.5 MB, free: 10.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.302e-05/0.4854, allocations: 107 kB / 477.6 MB, free: 9.969 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.4855, allocations: 26.38 kB / 477.6 MB, free: 9.949 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/0.4855, allocations: 3.938 kB / 477.6 MB, free: 9.945 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.916e-05/0.4855, allocations: 322 kB / 478 MB, free: 9.629 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.746e-05/0.4856, allocations: 19.06 kB / 478 MB, free: 9.617 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.914e-05/0.4856, allocations: 113.4 kB / 478.1 MB, free: 9.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.635e-05/0.4857, allocations: 39.14 kB / 478.1 MB, free: 9.453 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.4857, allocations: 5.812 kB / 478.1 MB, free: 9.453 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001795/0.4859, allocations: 140.3 kB / 478.3 MB, free: 9.336 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.4859, allocations: 8 kB / 478.3 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.4859, allocations: 4 kB / 478.3 MB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.4859, allocations: 4.438 kB / 478.3 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.4861, allocations: 54 kB / 478.3 MB, free: 9.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.4862, allocations: 4 kB / 478.3 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.4863, allocations: 23.36 kB / 478.4 MB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.4863, allocations: 8 kB / 478.4 MB, free: 9.246 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.148e-05/0.4864, allocations: 116.8 kB / 478.5 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.4865, allocations: 79.48 kB / 478.6 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.006e-05/0.4865, allocations: 11 kB / 478.6 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.4865, allocations: 7.422 kB / 478.6 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.4865, allocations: 0 / 478.6 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.4866, allocations: 0 / 478.6 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001793/0.4867, allocations: 169.9 kB / 478.7 MB, free: 8.875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4868, allocations: 2.5 kB / 478.8 MB, free: 8.875 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.4869, allocations: 42.42 kB / 478.8 MB, free: 8.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.487, allocations: 0 / 478.8 MB, free: 8.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.487, allocations: 6.266 kB / 478.8 MB, free: 8.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.487, allocations: 4 kB / 478.8 MB, free: 8.836 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.487, allocations: 3.906 kB / 478.8 MB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002494/0.4872, allocations: 349.4 kB / 479.1 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003282/0.4876, allocations: 0.7545 MB / 479.9 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.038e-05/0.4876, allocations: 88.95 kB / 480 MB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.473e-05/0.4877, allocations: 3.562 kB / 480 MB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.4878, allocations: 11.09 kB / 480 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.154e-05/0.4879, allocations: 11.23 kB / 480 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.4879, allocations: 0 / 480 MB, free: 7.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.435e-05/0.4879, allocations: 96.39 kB / 480.1 MB, free: 7.574 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008957/0.4888, allocations: 27.3 kB / 480.1 MB, free: 7.551 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 (14): * Single equations (assignments): 14 * 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.0001005/0.4889, allocations: 99.25 kB / 480.2 MB, free: 7.445 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.4891, allocations: 83.41 kB / 480.3 MB, free: 7.387 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.4891, allocations: 3.938 kB / 480.3 MB, free: 7.383 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.818e-05/0.4891, allocations: 11.12 kB / 480.3 MB, free: 7.375 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.4895, allocations: 57.52 kB / 480.4 MB, free: 7.336 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005105/0.49, allocations: 273.9 kB / 480.7 MB, free: 7.082 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.4902, allocations: 0.74 MB / 481.4 MB, free: 6.332 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4902, allocations: 0 / 481.4 MB, free: 6.332 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1)