Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.395/1.395, allocations: 289.8 MB / 297.1 MB, free: 8.957 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.00106/0.00106, allocations: 185.2 kB / 366.3 MB, free: 11.33 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.121/1.121, allocations: 205.1 MB / 0.6256 GB, free: 11.46 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007669/0.0007667, allocations: 97.17 kB / 0.7396 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.378/0.3788, allocations: 122.4 MB / 0.8591 GB, free: 148 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.5368, allocations: 116.3 MB / 0.9727 GB, free: 31.64 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4609/0.9977, allocations: 138.1 MB / 1.108 GB, free: 16.13 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.998, allocations: 69.31 kB / 1.108 GB, free: 16.13 MB / 0.6823 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.003364/1.001, allocations: 1.168 MB / 1.109 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/1.001, allocations: 10.83 kB / 1.109 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.421e-05/1.001, allocations: 6.531 kB / 1.109 GB, free: 15.72 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.883e-05/1.002, allocations: 175.1 kB / 1.109 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/1.002, allocations: 4.875 kB / 1.109 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/1.002, allocations: 6.562 kB / 1.109 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.675e-05/1.002, allocations: 14.03 kB / 1.109 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.729e-05/1.002, allocations: 50.44 kB / 1.109 GB, free: 15.48 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/1.002, allocations: 0 / 1.109 GB, free: 15.48 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/1.002, allocations: 1.312 kB / 1.109 GB, free: 15.48 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.954e-06/1.002, allocations: 1.25 kB / 1.109 GB, free: 15.48 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003722/1.002, allocations: 268.7 kB / 1.109 GB, free: 15.25 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.813e-05/1.002, allocations: 46.67 kB / 1.109 GB, free: 15.22 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.263e-05/1.002, allocations: 15.67 kB / 1.109 GB, free: 15.21 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/1.002, allocations: 3.109 kB / 1.109 GB, free: 15.21 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.149e-05/1.002, allocations: 75.41 kB / 1.109 GB, free: 15.15 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/1.002, allocations: 0 / 1.109 GB, free: 15.15 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.000161/1.003, allocations: 58.03 kB / 1.109 GB, free: 15.12 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.058e-05/1.003, allocations: 52.91 kB / 1.11 GB, free: 15.06 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.704e-05/1.003, allocations: 96.66 kB / 1.11 GB, free: 14.97 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/1.003, allocations: 29.64 kB / 1.11 GB, free: 14.93 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 2.017e-05/1.003, allocations: 90.23 kB / 1.11 GB, free: 14.85 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/1.003, allocations: 19.72 kB / 1.11 GB, free: 14.84 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.51e-06/1.003, allocations: 7.938 kB / 1.11 GB, free: 14.83 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 4.075e-05/1.003, allocations: 316.8 kB / 1.11 GB, free: 14.52 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.811e-05/1.003, allocations: 13.56 kB / 1.11 GB, free: 14.52 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.118e-05/1.003, allocations: 41.59 kB / 1.11 GB, free: 14.48 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/1.003, allocations: 34.53 kB / 1.11 GB, free: 14.47 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/1.003, allocations: 1.25 kB / 1.11 GB, free: 14.47 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002116/1.003, allocations: 96.09 kB / 1.11 GB, free: 14.43 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/1.003, allocations: 5.281 kB / 1.11 GB, free: 14.43 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/1.003, allocations: 1.094 kB / 1.11 GB, free: 14.43 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/1.003, allocations: 3.609 kB / 1.11 GB, free: 14.43 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/1.003, allocations: 22.34 kB / 1.11 GB, free: 14.43 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/1.003, allocations: 3.547 kB / 1.11 GB, free: 14.43 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.246e-05/1.004, allocations: 17.64 kB / 1.11 GB, free: 14.42 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/1.004, allocations: 5.234 kB / 1.11 GB, free: 14.42 MB / 0.6823 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 5.036e-05/1.004, allocations: 112 kB / 1.11 GB, free: 14.31 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.394e-05/1.004, allocations: 14.84 kB / 1.11 GB, free: 14.3 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/1.004, allocations: 74.7 kB / 1.11 GB, free: 14.25 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/1.004, allocations: 1.188 kB / 1.11 GB, free: 14.25 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/1.004, allocations: 1.344 kB / 1.11 GB, free: 14.25 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/1.004, allocations: 0.5 kB / 1.11 GB, free: 14.25 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/1.004, allocations: 295.9 kB / 1.111 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/1.004, allocations: 2.359 kB / 1.111 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.666e-05/1.004, allocations: 21.25 kB / 1.111 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/1.004, allocations: 0.5938 kB / 1.111 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.677e-06/1.004, allocations: 1.188 kB / 1.111 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/1.004, allocations: 0.625 kB / 1.111 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.004, allocations: 0.625 kB / 1.111 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001217/1.004, allocations: 162.7 kB / 1.111 GB, free: 13.85 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001623/1.004, allocations: 0.5337 MB / 1.111 GB, free: 13.34 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 1.929e-05/1.004, allocations: 87.27 kB / 1.112 GB, free: 13.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/1.005, allocations: 1 kB / 1.112 GB, free: 13.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/1.005, allocations: 12.83 kB / 1.112 GB, free: 13.23 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.643e-05/1.005, allocations: 9.047 kB / 1.112 GB, free: 13.23 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/1.005, allocations: 4.75 kB / 1.112 GB, free: 13.23 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.604e-05/1.005, allocations: 84.7 kB / 1.112 GB, free: 13.16 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0007807/1.006, allocations: 20.94 kB / 1.112 GB, free: 13.15 MB / 0.6823 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.0001308/1.006, allocations: 108 kB / 1.112 GB, free: 13.06 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000119/1.006, allocations: 44.38 kB / 1.112 GB, free: 13.05 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/1.006, allocations: 0.5312 kB / 1.112 GB, free: 13.05 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 5.219e-05/1.006, allocations: 25.38 kB / 1.112 GB, free: 13.05 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00017/1.006, allocations: 8.719 kB / 1.112 GB, free: 13.05 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000229/1.006, allocations: 79.39 kB / 1.112 GB, free: 12.98 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000322/1.007, allocations: 0.6978 MB / 1.113 GB, free: 28.28 MB / 0.698 GB Notification: Performance of SimCode: time 2.5e-07/1.007, allocations: 0 / 1.113 GB, free: 28.28 MB / 0.698 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)