Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_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 3.2.3+maint.om/package.mo): time 0.002561/0.002561, allocations: 185.2 kB / 7.843 MB, free: 2.516 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.845/1.845, allocations: 205.2 MB / 213.5 MB, free: 13.92 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.00129/0.001289, allocations: 93.28 kB / 261.5 MB, free: 13.63 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.1077/0.1077, allocations: 12.59 MB / 322 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2557/0.3634, allocations: 56.49 MB / 378.5 MB, free: 75.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.4729, allocations: 50.37 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3219/0.7949, allocations: 79.32 MB / 0.4963 GB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/0.7952, allocations: 72.73 kB / 0.4963 GB, free: 11.86 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0116/0.8068, allocations: 2.768 MB / 0.499 GB, free: 11.34 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.8069, allocations: 11.28 kB / 0.4991 GB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.585e-05/0.807, allocations: 19.44 kB / 0.4991 GB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/0.8073, allocations: 214 kB / 0.4993 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.8073, allocations: 7.797 kB / 0.4993 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/0.8074, allocations: 15.31 kB / 0.4993 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002465/0.8076, allocations: 64.7 kB / 0.4994 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004933/0.8081, allocations: 212.6 kB / 0.4996 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.8082, allocations: 0 / 0.4996 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.17e-05/0.8082, allocations: 1.594 kB / 0.4996 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.589e-06/0.8082, allocations: 3.906 kB / 0.4996 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007512/0.809, allocations: 0.5661 MB / 0.5001 GB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003453/0.8093, allocations: 121.8 kB / 0.5002 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.8095, allocations: 61.91 kB / 0.5003 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.8095, allocations: 1.031 kB / 0.5003 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.8096, allocations: 36.05 kB / 0.5003 GB, free: 10.38 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.324e-06/0.8096, allocations: 0.5625 kB / 0.5003 GB, free: 10.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004034/0.81, allocations: 112.6 kB / 0.5004 GB, free: 10.33 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/0.8101, allocations: 116.2 kB / 0.5005 GB, free: 10.2 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.8102, allocations: 132.7 kB / 0.5007 GB, free: 10.11 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.8102, allocations: 26.88 kB / 0.5007 GB, free: 10.08 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.156e-05/0.8103, allocations: 107.6 kB / 0.5008 GB, free: 9.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.753e-05/0.8103, allocations: 26.62 kB / 0.5008 GB, free: 9.969 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.215e-06/0.8104, allocations: 0 / 0.5008 GB, free: 9.969 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.437e-05/0.8104, allocations: 326.3 kB / 0.5011 GB, free: 9.652 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.714e-05/0.8105, allocations: 19 kB / 0.5012 GB, free: 9.648 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.8106, allocations: 121.4 kB / 0.5013 GB, free: 9.516 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.576e-05/0.8108, allocations: 41.98 kB / 0.5013 GB, free: 9.508 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.8108, allocations: 3.844 kB / 0.5013 GB, free: 9.508 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002997/0.8111, allocations: 139.9 kB / 0.5015 GB, free: 9.453 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.8111, allocations: 3.844 kB / 0.5015 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.8111, allocations: 5.484 kB / 0.5015 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.8112, allocations: 4.312 kB / 0.5015 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003316/0.8115, allocations: 56.73 kB / 0.5015 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.8115, allocations: 11.81 kB / 0.5015 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001901/0.8117, allocations: 22.28 kB / 0.5015 GB, free: 9.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.8118, allocations: 7.688 kB / 0.5016 GB, free: 9.43 MB / 330.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 8.331e-05/0.8119, allocations: 114.2 kB / 0.5017 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001984/0.8121, allocations: 83.41 kB / 0.5017 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.8122, allocations: 16.92 kB / 0.5018 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.8122, allocations: 4.078 kB / 0.5018 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.8122, allocations: 7.812 kB / 0.5018 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.8122, allocations: 1.453 kB / 0.5018 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002945/0.8125, allocations: 188.2 kB / 0.502 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.8125, allocations: 0 / 0.502 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000343/0.8129, allocations: 44.91 kB / 0.502 GB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.8129, allocations: 0 / 0.502 GB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.8129, allocations: 3.844 kB / 0.502 GB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.813, allocations: 3.984 kB / 0.502 GB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.813, allocations: 0 / 0.502 GB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004016/0.8134, allocations: 370.6 kB / 0.5024 GB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005682/0.814, allocations: 0.7622 MB / 0.5031 GB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.8141, allocations: 106.5 kB / 0.5032 GB, free: 8.09 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.574e-05/0.8141, allocations: 3.906 kB / 0.5032 GB, free: 8.086 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.8144, allocations: 9.219 kB / 0.5032 GB, free: 8.086 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/0.8145, allocations: 7.219 kB / 0.5032 GB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.8145, allocations: 3.844 kB / 0.5032 GB, free: 8.082 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001045/0.8146, allocations: 124.4 kB / 0.5033 GB, free: 8 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001283/0.8159, allocations: 22.97 kB / 0.5034 GB, free: 7.996 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.0001408/0.816, allocations: 100.3 kB / 0.5035 GB, free: 7.902 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002636/0.8163, allocations: 86.61 kB / 0.5035 GB, free: 7.891 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.8163, allocations: 0 / 0.5035 GB, free: 7.891 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.849e-05/0.8164, allocations: 23.62 kB / 0.5036 GB, free: 7.883 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000556/0.817, allocations: 58.77 kB / 0.5036 GB, free: 7.871 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008065/0.8178, allocations: 288.4 kB / 0.5039 GB, free: 7.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003145/0.8181, allocations: 0.75 MB / 0.5046 GB, free: 6.973 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.8181, allocations: 0 / 0.5046 GB, free: 6.973 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1)