Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) 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) 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) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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/Buildings 8.0.0/package.mo): time 2.14/2.14, allocations: 284.8 MB / 292.1 MB, free: 10.81 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001576/0.001575, allocations: 183.5 kB / 360.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.625/1.625, allocations: 205.1 MB / 0.6187 GB, free: 13.21 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001222/0.001221, allocations: 92.95 kB / 0.7317 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.245/0.2463, allocations: 121.4 MB / 0.8502 GB, free: 3.898 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5439/0.7902, allocations: 115.2 MB / 0.9628 GB, free: 78.56 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2048/0.995, allocations: 137 MB / 1.097 GB, free: 3.848 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.9953, allocations: 68.72 kB / 1.097 GB, free: 3.781 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.005452/1.001, allocations: 1.166 MB / 1.098 GB, free: 2.613 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/1.001, allocations: 8.5 kB / 1.098 GB, free: 2.605 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.423e-05/1.001, allocations: 10.05 kB / 1.098 GB, free: 2.598 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/1.001, allocations: 163 kB / 1.098 GB, free: 2.398 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/1.001, allocations: 6.25 kB / 1.098 GB, free: 2.395 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.973e-05/1.001, allocations: 0 / 1.098 GB, free: 2.395 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001092/1.001, allocations: 19.94 kB / 1.098 GB, free: 2.375 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/1.001, allocations: 50.25 kB / 1.098 GB, free: 2.32 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/1.001, allocations: 0 / 1.098 GB, free: 2.32 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/1.001, allocations: 4.828 kB / 1.098 GB, free: 2.316 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/1.001, allocations: 0 / 1.098 GB, free: 2.316 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006154/1.002, allocations: 277.2 kB / 1.098 GB, free: 2.012 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/1.002, allocations: 39.91 kB / 1.098 GB, free: 1.965 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.904e-05/1.002, allocations: 17.8 kB / 1.098 GB, free: 1.945 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/1.002, allocations: 7.906 kB / 1.098 GB, free: 1.938 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001081/1.002, allocations: 62.69 kB / 1.098 GB, free: 1.867 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.714e-06/1.002, allocations: 4 kB / 1.098 GB, free: 1.863 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0002301/1.003, allocations: 62.73 kB / 1.098 GB, free: 1.801 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/1.003, allocations: 52.09 kB / 1.098 GB, free: 1.738 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.026e-05/1.003, allocations: 105.6 kB / 1.099 GB, free: 1.629 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/1.003, allocations: 25.7 kB / 1.099 GB, free: 1.598 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.982e-05/1.003, allocations: 84.73 kB / 1.099 GB, free: 1.512 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.123e-05/1.003, allocations: 20.28 kB / 1.099 GB, free: 1.492 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.045e-06/1.003, allocations: 1.031 kB / 1.099 GB, free: 1.492 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001277/1.003, allocations: 315.6 kB / 1.099 GB, free: 1.176 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.112e-05/1.003, allocations: 16.69 kB / 1.099 GB, free: 1.16 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.974e-05/1.003, allocations: 48.14 kB / 1.099 GB, free: 1.102 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/1.003, allocations: 35.97 kB / 1.099 GB, free: 1.066 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/1.003, allocations: 0 / 1.099 GB, free: 1.066 MB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003283/1.004, allocations: 93.25 kB / 1.099 GB, free: 0.9727 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/1.004, allocations: 4 kB / 1.099 GB, free: 0.9688 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/1.004, allocations: 0 / 1.099 GB, free: 0.9688 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/1.004, allocations: 8.641 kB / 1.099 GB, free: 0.9609 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/1.004, allocations: 23.92 kB / 1.099 GB, free: 0.9375 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/1.004, allocations: 7.891 kB / 1.099 GB, free: 0.9297 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/1.004, allocations: 8 kB / 1.099 GB, free: 0.9219 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/1.004, allocations: 8 kB / 1.099 GB, free: 0.9141 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 9.285e-05/1.004, allocations: 114.5 kB / 1.099 GB, free: 0.7969 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.909e-05/1.004, allocations: 3.906 kB / 1.099 GB, free: 0.793 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002164/1.005, allocations: 78.05 kB / 1.099 GB, free: 0.7148 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/1.005, allocations: 0 / 1.099 GB, free: 0.7148 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/1.005, allocations: 1.875 kB / 1.099 GB, free: 0.7148 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/1.005, allocations: 0 / 1.099 GB, free: 0.7148 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003894/1.005, allocations: 299.1 kB / 1.1 GB, free: 388 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/1.005, allocations: 0.5156 kB / 1.1 GB, free: 388 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/1.005, allocations: 23.92 kB / 1.1 GB, free: 364 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/1.005, allocations: 0 / 1.1 GB, free: 364 kB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/1.005, allocations: 0 / 1.1 GB, free: 364 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/1.005, allocations: 0 / 1.1 GB, free: 364 kB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/1.005, allocations: 3.906 kB / 1.1 GB, free: 360 kB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002023/1.006, allocations: 159.5 kB / 1.1 GB, free: 184 kB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004024/1.006, allocations: 0.5388 MB / 1.1 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.332e-05/1.006, allocations: 84.98 kB / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.747e-05/1.006, allocations: 0.5156 kB / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/1.006, allocations: 21.55 kB / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.469e-05/1.006, allocations: 3.984 kB / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.909e-05/1.006, allocations: 11.91 kB / 1.101 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.695e-05/1.006, allocations: 83.22 kB / 1.101 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001155/1.008, allocations: 20 kB / 1.101 GB, free: 15.38 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001911/1.008, allocations: 107.8 kB / 1.101 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001709/1.008, allocations: 43.92 kB / 1.101 GB, free: 15.22 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.309e-06/1.008, allocations: 4.25 kB / 1.101 GB, free: 15.22 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.295e-05/1.008, allocations: 20 kB / 1.101 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/1.008, allocations: 8.844 kB / 1.101 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003429/1.009, allocations: 80.53 kB / 1.101 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000351/1.009, allocations: 0.7004 MB / 1.102 GB, free: 14.36 MB / 0.7136 GB Notification: Performance of SimCode: time 6.82e-07/1.009, allocations: 0 / 1.102 GB, free: 14.36 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)