Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_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 3.2.3+maint.om/package.mo): time 0.00181/0.001809, allocations: 187 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.913/1.913, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.001304/0.001303, allocations: 94.08 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.1207/0.1207, allocations: 12.59 MB / 322 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.246/0.3668, allocations: 56.49 MB / 378.5 MB, free: 75.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09577/0.4626, allocations: 50.37 MB / 428.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3264/0.7891, allocations: 79.12 MB / 0.4961 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.7895, allocations: 71.72 kB / 0.4961 GB, free: 11.96 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.01003/0.7995, allocations: 2.398 MB / 0.4985 GB, free: 11.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.7996, allocations: 9.688 kB / 0.4985 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.975e-05/0.7997, allocations: 15.53 kB / 0.4985 GB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002542/0.7999, allocations: 204.4 kB / 0.4987 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.8, allocations: 3.906 kB / 0.4987 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.767e-05/0.8, allocations: 7.625 kB / 0.4987 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002293/0.8002, allocations: 59.19 kB / 0.4988 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004678/0.8007, allocations: 198.5 kB / 0.499 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.8008, allocations: 0 / 0.499 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/0.8008, allocations: 3.844 kB / 0.499 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.8008, allocations: 0 / 0.499 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007341/0.8015, allocations: 0.5554 MB / 0.4995 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.8018, allocations: 115.3 kB / 0.4996 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.8019, allocations: 57.27 kB / 0.4997 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.444e-05/0.802, allocations: 10.3 kB / 0.4997 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.802, allocations: 42.41 kB / 0.4997 GB, free: 10.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.923e-06/0.802, allocations: 0 / 0.4997 GB, free: 10.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003491/0.8024, allocations: 102.8 kB / 0.4998 GB, free: 10.48 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.8025, allocations: 106.7 kB / 0.4999 GB, free: 10.35 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.8026, allocations: 115.9 kB / 0.5 GB, free: 10.26 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.8026, allocations: 25.7 kB / 0.5001 GB, free: 10.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.667e-05/0.8027, allocations: 110.2 kB / 0.5002 GB, free: 10.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3e-05/0.8027, allocations: 33.45 kB / 0.5002 GB, free: 10.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-06/0.8028, allocations: 0 / 0.5002 GB, free: 10.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.795e-05/0.8028, allocations: 322.1 kB / 0.5005 GB, free: 9.793 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.362e-05/0.8029, allocations: 21.5 kB / 0.5005 GB, free: 9.793 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.803, allocations: 111.3 kB / 0.5006 GB, free: 9.672 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.988e-05/0.8032, allocations: 43.02 kB / 0.5007 GB, free: 9.66 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.8032, allocations: 3.812 kB / 0.5007 GB, free: 9.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003099/0.8035, allocations: 137.4 kB / 0.5008 GB, free: 9.605 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.8035, allocations: 3.844 kB / 0.5008 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.8035, allocations: 3.812 kB / 0.5008 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/0.8036, allocations: 3.781 kB / 0.5008 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003597/0.8039, allocations: 49.53 kB / 0.5009 GB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.804, allocations: 7.812 kB / 0.5009 GB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.8042, allocations: 29.95 kB / 0.5009 GB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.8042, allocations: 7.062 kB / 0.5009 GB, free: 9.586 MB / 330.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 8.794e-05/0.8043, allocations: 108.8 kB / 0.501 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.8045, allocations: 74.62 kB / 0.5011 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.103e-05/0.8046, allocations: 16.67 kB / 0.5011 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.8046, allocations: 0 / 0.5011 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.8046, allocations: 4.562 kB / 0.5011 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.8046, allocations: 3.906 kB / 0.5011 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002904/0.8049, allocations: 176.1 kB / 0.5013 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.8049, allocations: 0 / 0.5013 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00034/0.8053, allocations: 38.5 kB / 0.5013 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.8053, allocations: 3.906 kB / 0.5013 GB, free: 9.266 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.8053, allocations: 7.812 kB / 0.5013 GB, free: 9.262 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.8054, allocations: 0 / 0.5013 GB, free: 9.262 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.8054, allocations: 0 / 0.5013 GB, free: 9.262 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003908/0.8058, allocations: 353.7 kB / 0.5017 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007578/0.8065, allocations: 0.75 MB / 0.5024 GB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.183e-05/0.8066, allocations: 89.83 kB / 0.5025 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.769e-05/0.8067, allocations: 7.875 kB / 0.5025 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002807/0.807, allocations: 10.84 kB / 0.5025 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.481e-05/0.8071, allocations: 5.703 kB / 0.5025 GB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.8071, allocations: 3.719 kB / 0.5025 GB, free: 8.258 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.151e-05/0.8072, allocations: 98.44 kB / 0.5026 GB, free: 8.184 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001292/0.8085, allocations: 27.44 kB / 0.5026 GB, free: 8.176 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 (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.000143/0.8087, allocations: 104.3 kB / 0.5027 GB, free: 8.078 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002665/0.8089, allocations: 84.11 kB / 0.5028 GB, free: 8.066 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.809, allocations: 4.312 kB / 0.5028 GB, free: 8.062 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.118e-05/0.809, allocations: 16.11 kB / 0.5028 GB, free: 8.062 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005153/0.8095, allocations: 42.28 kB / 0.5029 GB, free: 8.055 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007995/0.8104, allocations: 270.4 kB / 0.5031 GB, free: 7.863 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002629/0.8106, allocations: 0.7389 MB / 0.5038 GB, free: 7.156 MB / 330.7 MB Notification: Performance of SimCode: time 1.383e-06/0.8107, allocations: 0 / 0.5038 GB, free: 7.156 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1)