Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.215/1.215, allocations: 249.4 MB / 256.7 MB, free: 0.7344 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001263/0.001264, allocations: 185.3 kB / 316 MB, free: 8.941 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.104/1.104, allocations: 205.1 MB / 0.5667 GB, free: 13.46 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007366/0.0007366, allocations: 95.09 kB / 0.671 GB, free: 51.51 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1837/0.1845, allocations: 112.5 MB / 0.7808 GB, free: 9.883 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4388/0.6233, allocations: 106.3 MB / 0.8847 GB, free: 89.17 MB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1448/0.7681, allocations: 130.8 MB / 1.012 GB, free: 14.8 MB / 0.659 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001799/0.7683, allocations: 71.95 kB / 1.013 GB, free: 14.73 MB / 0.659 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.002785/0.7711, allocations: 0.9456 MB / 1.013 GB, free: 13.78 MB / 0.659 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.7711, allocations: 12.66 kB / 1.013 GB, free: 13.77 MB / 0.659 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.7712, allocations: 3.906 kB / 1.013 GB, free: 13.77 MB / 0.659 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.7713, allocations: 169 kB / 1.014 GB, free: 13.56 MB / 0.659 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.7713, allocations: 3.984 kB / 1.014 GB, free: 13.56 MB / 0.659 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.486e-05/0.7713, allocations: 5.922 kB / 1.014 GB, free: 13.55 MB / 0.659 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.788e-05/0.7714, allocations: 20.53 kB / 1.014 GB, free: 13.54 MB / 0.659 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.082e-05/0.7715, allocations: 52.38 kB / 1.014 GB, free: 13.48 MB / 0.659 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-06/0.7715, allocations: 0.8438 kB / 1.014 GB, free: 13.48 MB / 0.659 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.7715, allocations: 0 / 1.014 GB, free: 13.48 MB / 0.659 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.7715, allocations: 4 kB / 1.014 GB, free: 13.48 MB / 0.659 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004298/0.772, allocations: 278 kB / 1.014 GB, free: 13.17 MB / 0.659 GB Notification: Performance of preOpt comSubExp (simulation): time 7.576e-05/0.7721, allocations: 38.58 kB / 1.014 GB, free: 13.12 MB / 0.659 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.402e-05/0.7721, allocations: 17.55 kB / 1.014 GB, free: 13.11 MB / 0.659 GB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.7721, allocations: 1 kB / 1.014 GB, free: 13.11 MB / 0.659 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.189e-05/0.7722, allocations: 64.59 kB / 1.014 GB, free: 13.03 MB / 0.659 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.7722, allocations: 0 / 1.014 GB, free: 13.03 MB / 0.659 GB Notification: Performance of matching and sorting (n=7): time 0.0001484/0.7724, allocations: 65.83 kB / 1.014 GB, free: 12.96 MB / 0.659 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.7724, allocations: 56.33 kB / 1.014 GB, free: 12.9 MB / 0.659 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.968e-05/0.7725, allocations: 97.78 kB / 1.014 GB, free: 12.8 MB / 0.659 GB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.7725, allocations: 25.7 kB / 1.014 GB, free: 12.77 MB / 0.659 GB Notification: Performance of collectInitialEqns (initialization): time 3.511e-05/0.7726, allocations: 84.28 kB / 1.014 GB, free: 12.68 MB / 0.659 GB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.7726, allocations: 23.7 kB / 1.014 GB, free: 12.66 MB / 0.659 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-06/0.7726, allocations: 0 / 1.014 GB, free: 12.66 MB / 0.659 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.7727, allocations: 318.8 kB / 1.015 GB, free: 12.34 MB / 0.659 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.749e-05/0.7728, allocations: 8 kB / 1.015 GB, free: 12.33 MB / 0.659 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.869e-05/0.7728, allocations: 49.06 kB / 1.015 GB, free: 12.27 MB / 0.659 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.724e-05/0.7729, allocations: 17.34 kB / 1.015 GB, free: 12.25 MB / 0.659 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.7729, allocations: 0.6562 kB / 1.015 GB, free: 12.25 MB / 0.659 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001291/0.773, allocations: 90.73 kB / 1.015 GB, free: 12.16 MB / 0.659 GB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.773, allocations: 5.875 kB / 1.015 GB, free: 12.16 MB / 0.659 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.773, allocations: 4 kB / 1.015 GB, free: 12.16 MB / 0.659 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.917e-06/0.773, allocations: 1.531 kB / 1.015 GB, free: 12.16 MB / 0.659 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.7732, allocations: 23.92 kB / 1.015 GB, free: 12.13 MB / 0.659 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.7732, allocations: 4 kB / 1.015 GB, free: 12.13 MB / 0.659 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.344e-05/0.7733, allocations: 15.97 kB / 1.015 GB, free: 12.11 MB / 0.659 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.7733, allocations: 0 / 1.015 GB, free: 12.11 MB / 0.659 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 7.469e-05/0.7734, allocations: 112.9 kB / 1.015 GB, free: 12 MB / 0.659 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.337e-05/0.7734, allocations: 9.594 kB / 1.015 GB, free: 11.99 MB / 0.659 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001467/0.7735, allocations: 73.97 kB / 1.015 GB, free: 11.91 MB / 0.659 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.7735, allocations: 0 / 1.015 GB, free: 11.91 MB / 0.659 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-06/0.7735, allocations: 0 / 1.015 GB, free: 11.91 MB / 0.659 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.7736, allocations: 3.984 kB / 1.015 GB, free: 11.91 MB / 0.659 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.7738, allocations: 299.1 kB / 1.015 GB, free: 11.57 MB / 0.659 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.7738, allocations: 0 / 1.015 GB, free: 11.57 MB / 0.659 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.842e-05/0.7739, allocations: 15.98 kB / 1.015 GB, free: 11.55 MB / 0.659 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.7739, allocations: 3.938 kB / 1.015 GB, free: 11.55 MB / 0.659 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.7739, allocations: 3.5 kB / 1.015 GB, free: 11.55 MB / 0.659 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.7739, allocations: 7.938 kB / 1.015 GB, free: 11.54 MB / 0.659 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.774, allocations: 0 / 1.015 GB, free: 11.54 MB / 0.659 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001394/0.7741, allocations: 175.3 kB / 1.016 GB, free: 11.36 MB / 0.659 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002157/0.7743, allocations: 0.5267 MB / 1.016 GB, free: 10.82 MB / 0.659 GB Notification: Performance of postOpt removeConstants (simulation): time 3.105e-05/0.7744, allocations: 81.02 kB / 1.016 GB, free: 10.72 MB / 0.659 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.622e-05/0.7744, allocations: 4 kB / 1.016 GB, free: 10.71 MB / 0.659 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.7745, allocations: 15.98 kB / 1.016 GB, free: 10.7 MB / 0.659 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.178e-05/0.7746, allocations: 5.484 kB / 1.016 GB, free: 10.7 MB / 0.659 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.357e-06/0.7746, allocations: 4 kB / 1.016 GB, free: 10.69 MB / 0.659 GB Notification: Performance of sort global known variables: time 3.506e-05/0.7746, allocations: 87.22 kB / 1.016 GB, free: 10.61 MB / 0.659 GB Notification: Performance of remove unused functions: time 0.0007606/0.7754, allocations: 8 kB / 1.016 GB, free: 10.6 MB / 0.659 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.0001013/0.7755, allocations: 109.2 kB / 1.016 GB, free: 10.48 MB / 0.659 GB Notification: Performance of simCode: created initialization part: time 9.831e-05/0.7756, allocations: 35.94 kB / 1.016 GB, free: 10.45 MB / 0.659 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.7756, allocations: 0 / 1.016 GB, free: 10.45 MB / 0.659 GB Notification: Performance of simCode: created simulation system equations: time 4.386e-05/0.7756, allocations: 24 kB / 1.016 GB, free: 10.43 MB / 0.659 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000171/0.7758, allocations: 7.906 kB / 1.016 GB, free: 10.42 MB / 0.659 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002316/0.7761, allocations: 87.61 kB / 1.017 GB, free: 10.31 MB / 0.659 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000265/0.7763, allocations: 0.6999 MB / 1.017 GB, free: 9.582 MB / 0.659 GB Notification: Performance of SimCode: time 1.813e-06/0.7763, allocations: 1.5 kB / 1.017 GB, free: 9.582 MB / 0.659 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)