Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.307/1.307, allocations: 285.5 MB / 292.8 MB, free: 10.43 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.0009217/0.0009217, allocations: 185.3 kB / 361.1 MB, free: 7.086 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9984/0.9984, allocations: 205.1 MB / 0.6195 GB, free: 10.29 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.0007227/0.0007227, allocations: 82.27 kB / 0.7325 GB, free: 44.24 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1708/0.1715, allocations: 121.5 MB / 0.8512 GB, free: 2.863 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4105/0.5821, allocations: 115.3 MB / 0.9638 GB, free: 78.21 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1478/0.7299, allocations: 137.2 MB / 1.098 GB, free: 2.816 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/0.7302, allocations: 68.7 kB / 1.098 GB, free: 2.75 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.004659/0.7349, allocations: 1.167 MB / 1.099 GB, free: 1.578 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.7349, allocations: 12.75 kB / 1.099 GB, free: 1.566 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.227e-05/0.735, allocations: 1.812 kB / 1.099 GB, free: 1.566 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.7351, allocations: 170.5 kB / 1.099 GB, free: 1.363 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.7352, allocations: 0.9062 kB / 1.099 GB, free: 1.363 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.136e-05/0.7352, allocations: 7.984 kB / 1.099 GB, free: 1.355 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001068/0.7353, allocations: 16 kB / 1.099 GB, free: 1.34 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.7354, allocations: 50.16 kB / 1.099 GB, free: 1.285 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.7354, allocations: 0.5 kB / 1.099 GB, free: 1.285 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.7355, allocations: 4.5 kB / 1.099 GB, free: 1.281 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.7355, allocations: 1.422 kB / 1.099 GB, free: 1.281 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005193/0.736, allocations: 275.9 kB / 1.099 GB, free: 0.9805 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001031/0.7361, allocations: 38.58 kB / 1.099 GB, free: 0.9336 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.781e-05/0.7362, allocations: 17.7 kB / 1.099 GB, free: 0.9141 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.7362, allocations: 8.672 kB / 1.099 GB, free: 0.9062 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001076/0.7363, allocations: 68.48 kB / 1.1 GB, free: 0.8281 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 2.084e-06/0.7363, allocations: 0.5625 kB / 1.1 GB, free: 0.8281 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0002031/0.7366, allocations: 59.16 kB / 1.1 GB, free: 0.7656 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.7366, allocations: 55.41 kB / 1.1 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.671e-05/0.7367, allocations: 98.59 kB / 1.1 GB, free: 0.5977 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.7367, allocations: 26.27 kB / 1.1 GB, free: 0.5664 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.064e-05/0.7368, allocations: 84.64 kB / 1.1 GB, free: 492 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.412e-05/0.7368, allocations: 21.45 kB / 1.1 GB, free: 472 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.712e-06/0.7368, allocations: 3.938 kB / 1.1 GB, free: 468 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.737, allocations: 318.8 kB / 1.1 GB, free: 140 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.478e-05/0.737, allocations: 12 kB / 1.1 GB, free: 128 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.218e-05/0.7371, allocations: 52.38 kB / 1.1 GB, free: 64 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.7373, allocations: 31.97 kB / 1.1 GB, free: 32 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.7373, allocations: 0 / 1.1 GB, free: 32 kB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000293/0.7376, allocations: 94.95 kB / 1.1 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.7376, allocations: 4 kB / 1.1 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.7376, allocations: 4 kB / 1.1 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.7377, allocations: 4.781 kB / 1.1 GB, free: 15.92 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.7378, allocations: 23.92 kB / 1.1 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.7378, allocations: 7.906 kB / 1.1 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.738, allocations: 11.98 kB / 1.1 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.738, allocations: 0 / 1.1 GB, free: 15.88 MB / 0.7136 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.829e-05/0.7381, allocations: 109 kB / 1.101 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.893e-05/0.7381, allocations: 7.906 kB / 1.101 GB, free: 15.76 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001974/0.7383, allocations: 81.86 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.7383, allocations: 0 / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.7383, allocations: 0 / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.7383, allocations: 1.438 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003415/0.7387, allocations: 291.8 kB / 1.101 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.7387, allocations: 3.984 kB / 1.101 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.7388, allocations: 20 kB / 1.101 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.7388, allocations: 0 / 1.101 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.7389, allocations: 0 / 1.101 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.7389, allocations: 11.92 kB / 1.101 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.7389, allocations: 3.906 kB / 1.101 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001769/0.7391, allocations: 159.5 kB / 1.101 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003341/0.7394, allocations: 0.5271 MB / 1.102 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.775e-05/0.7395, allocations: 86.16 kB / 1.102 GB, free: 14.49 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.592e-05/0.7395, allocations: 9.875 kB / 1.102 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.7397, allocations: 16.64 kB / 1.102 GB, free: 14.47 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.781e-05/0.7397, allocations: 0 / 1.102 GB, free: 14.47 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.7397, allocations: 7.906 kB / 1.102 GB, free: 14.46 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.673e-05/0.7398, allocations: 93.08 kB / 1.102 GB, free: 14.37 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001255/0.7411, allocations: 19.94 kB / 1.102 GB, free: 14.35 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.0001798/0.7413, allocations: 111 kB / 1.102 GB, free: 14.23 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001491/0.7414, allocations: 44.62 kB / 1.102 GB, free: 14.19 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.7414, allocations: 4.25 kB / 1.102 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.402e-05/0.7415, allocations: 26.09 kB / 1.102 GB, free: 14.16 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.7418, allocations: 4 kB / 1.102 GB, free: 14.16 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003089/0.7421, allocations: 80.58 kB / 1.102 GB, free: 14.05 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003335/0.7424, allocations: 0.6996 MB / 1.103 GB, free: 13.33 MB / 0.7136 GB Notification: Performance of SimCode: time 3.41e-07/0.7424, allocations: 4 kB / 1.103 GB, free: 13.32 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)