Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",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 3.2.3+maint.om/package.mo): time 0.002758/0.002758, allocations: 195.3 kB / 7.852 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.957/1.957, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001276/0.001276, allocations: 95.73 kB / 261.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1099/0.1099, allocations: 12.59 MB / 322 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3005/0.4105, allocations: 56.49 MB / 378.5 MB, free: 75.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.5335, allocations: 50.37 MB / 428.8 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4171/0.9507, allocations: 79.36 MB / 0.4963 GB, free: 11.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003721/0.9512, allocations: 74.33 kB / 0.4964 GB, free: 11.95 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.01545/0.9667, allocations: 2.676 MB / 0.499 GB, free: 11.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.9668, allocations: 13.5 kB / 0.499 GB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.036e-05/0.9669, allocations: 16.28 kB / 0.499 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.9672, allocations: 196.3 kB / 0.4992 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.9673, allocations: 7.812 kB / 0.4992 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/0.9673, allocations: 7.812 kB / 0.4992 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003047/0.9677, allocations: 62.89 kB / 0.4993 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006161/0.9683, allocations: 187.2 kB / 0.4995 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.9683, allocations: 0 / 0.4995 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.068e-05/0.9684, allocations: 3.844 kB / 0.4995 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.9684, allocations: 5.719 kB / 0.4995 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009893/0.9694, allocations: 0.5671 MB / 0.5 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004358/0.9699, allocations: 118 kB / 0.5001 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.9701, allocations: 59.89 kB / 0.5002 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.403e-05/0.9701, allocations: 1.875 kB / 0.5002 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.9702, allocations: 45.44 kB / 0.5002 GB, free: 10.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 3.887e-06/0.9702, allocations: 0 / 0.5002 GB, free: 10.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004945/0.9707, allocations: 97.95 kB / 0.5003 GB, free: 10.44 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.283e-05/0.9708, allocations: 109.3 kB / 0.5004 GB, free: 10.31 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.971, allocations: 122.6 kB / 0.5005 GB, free: 10.21 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.971, allocations: 25.7 kB / 0.5006 GB, free: 10.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.184e-05/0.9711, allocations: 107.5 kB / 0.5007 GB, free: 10.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.944e-05/0.9711, allocations: 30.19 kB / 0.5007 GB, free: 10.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.375e-05/0.9712, allocations: 7.938 kB / 0.5007 GB, free: 10.06 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.394e-05/0.9713, allocations: 328.7 kB / 0.501 GB, free: 9.746 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.882e-05/0.9714, allocations: 19.77 kB / 0.501 GB, free: 9.742 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.9716, allocations: 121.1 kB / 0.5012 GB, free: 9.613 MB / 330.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003489/0.9719, allocations: 124.1 kB / 0.5013 GB, free: 9.512 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.124e-06/0.972, allocations: 3.812 kB / 0.5013 GB, free: 9.512 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004832/0.9725, allocations: 146.7 kB / 0.5014 GB, free: 9.453 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.9725, allocations: 3.844 kB / 0.5014 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.9725, allocations: 3.844 kB / 0.5014 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/0.9726, allocations: 7.688 kB / 0.5014 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004643/0.973, allocations: 46.86 kB / 0.5015 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.9731, allocations: 11.78 kB / 0.5015 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.9734, allocations: 22.7 kB / 0.5015 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.927e-05/0.9734, allocations: 15.31 kB / 0.5015 GB, free: 9.434 MB / 330.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: PI.y = 0.0 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 0.00014/0.9736, allocations: 109.9 kB / 0.5016 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003264/0.9739, allocations: 83.78 kB / 0.5017 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.006e-05/0.9741, allocations: 20.92 kB / 0.5017 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.9741, allocations: 0 / 0.5017 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.9741, allocations: 3.719 kB / 0.5017 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.649e-06/0.9741, allocations: 1.547 kB / 0.5017 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000463/0.9746, allocations: 174.8 kB / 0.5019 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.9746, allocations: 3.625 kB / 0.5019 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005765/0.9752, allocations: 45.39 kB / 0.502 GB, free: 9.109 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.347e-06/0.9752, allocations: 7.625 kB / 0.502 GB, free: 9.105 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.9753, allocations: 5.406 kB / 0.502 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.9753, allocations: 3.906 kB / 0.502 GB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.9753, allocations: 3.688 kB / 0.502 GB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005874/0.9759, allocations: 352.6 kB / 0.5023 GB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007521/0.9767, allocations: 0.7628 MB / 0.5031 GB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.397e-05/0.9768, allocations: 90.45 kB / 0.5031 GB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.374e-05/0.9769, allocations: 0 / 0.5031 GB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004565/0.9773, allocations: 13.59 kB / 0.5032 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.686e-05/0.9774, allocations: 14.52 kB / 0.5032 GB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.9775, allocations: 7.812 kB / 0.5032 GB, free: 8.098 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001003/0.9776, allocations: 98.45 kB / 0.5033 GB, free: 8.023 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002402/0.98, allocations: 31.2 kB / 0.5033 GB, free: 8.016 MB / 330.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.0001861/0.9802, allocations: 108.1 kB / 0.5034 GB, free: 7.914 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004087/0.9806, allocations: 86.72 kB / 0.5035 GB, free: 7.906 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.9807, allocations: 0 / 0.5035 GB, free: 7.906 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.602e-05/0.9808, allocations: 18.66 kB / 0.5035 GB, free: 7.902 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008038/0.9816, allocations: 49.2 kB / 0.5035 GB, free: 7.898 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.983, allocations: 303.5 kB / 0.5038 GB, free: 7.695 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003693/0.9834, allocations: 0.7512 MB / 0.5046 GB, free: 6.984 MB / 330.7 MB Notification: Performance of SimCode: time 1.112e-06/0.9835, allocations: 0 / 0.5046 GB, free: 6.984 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1)