Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Logical.Validation.Switch,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",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.152/2.152, allocations: 284.8 MB / 292.1 MB, free: 10.79 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.00162/0.00162, allocations: 177.3 kB / 360.3 MB, free: 7.535 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.661/1.661, allocations: 205.1 MB / 0.6187 GB, free: 13.23 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.001223/0.001222, allocations: 90.19 kB / 0.7317 GB, free: 45.14 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2422/0.2435, allocations: 121.4 MB / 0.8502 GB, free: 3.934 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5655/0.809, allocations: 115.2 MB / 0.9628 GB, free: 78.62 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2095/1.019, allocations: 137.3 MB / 1.097 GB, free: 3.59 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/1.019, allocations: 71.95 kB / 1.097 GB, free: 3.52 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.01192/1.031, allocations: 2.344 MB / 1.099 GB, free: 1.184 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/1.031, allocations: 8.5 kB / 1.099 GB, free: 1.176 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.737e-05/1.031, allocations: 11.89 kB / 1.099 GB, free: 1.164 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/1.031, allocations: 178.9 kB / 1.099 GB, free: 0.9492 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/1.031, allocations: 6.344 kB / 1.099 GB, free: 0.9453 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.545e-05/1.031, allocations: 4 kB / 1.099 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001247/1.031, allocations: 20 kB / 1.099 GB, free: 0.9219 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001327/1.032, allocations: 53.67 kB / 1.099 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/1.032, allocations: 3.094 kB / 1.099 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/1.032, allocations: 0 / 1.099 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.779e-06/1.032, allocations: 4.516 kB / 1.099 GB, free: 0.8594 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006262/1.032, allocations: 311.8 kB / 1.1 GB, free: 0.5195 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.814e-05/1.032, allocations: 30.58 kB / 1.1 GB, free: 492 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.303e-05/1.032, allocations: 16.86 kB / 1.1 GB, free: 472 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/1.032, allocations: 0.6562 kB / 1.1 GB, free: 472 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001288/1.033, allocations: 63.41 kB / 1.1 GB, free: 396 kB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 2.024e-06/1.033, allocations: 4 kB / 1.1 GB, free: 392 kB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0002649/1.033, allocations: 73.53 kB / 1.1 GB, free: 312 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/1.033, allocations: 51.41 kB / 1.1 GB, free: 248 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/1.033, allocations: 120.3 kB / 1.1 GB, free: 120 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.884e-05/1.033, allocations: 29.7 kB / 1.1 GB, free: 84 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.462e-05/1.033, allocations: 92.12 kB / 1.1 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/1.033, allocations: 7.812 kB / 1.1 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.286e-05/1.033, allocations: 4 kB / 1.1 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001373/1.033, allocations: 322.7 kB / 1.101 GB, free: 15.65 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/1.034, allocations: 32 kB / 1.101 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/1.034, allocations: 54.56 kB / 1.101 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/1.034, allocations: 39.97 kB / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/1.034, allocations: 0 / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005774/1.035, allocations: 141.6 kB / 1.101 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/1.035, allocations: 4 kB / 1.101 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/1.035, allocations: 4 kB / 1.101 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/1.035, allocations: 4.062 kB / 1.101 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002425/1.035, allocations: 23.97 kB / 1.101 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/1.035, allocations: 4 kB / 1.101 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005057/1.035, allocations: 63.89 kB / 1.101 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.668e-05/1.036, allocations: 16.58 kB / 1.101 GB, free: 15.26 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001046/1.036, allocations: 114.2 kB / 1.101 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.049e-05/1.036, allocations: 3.906 kB / 1.101 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.247e-05/1.036, allocations: 12.38 kB / 1.101 GB, free: 15.13 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/1.036, allocations: 0 / 1.101 GB, free: 15.13 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.036, allocations: 4 kB / 1.101 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/1.036, allocations: 0 / 1.101 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001637/1.036, allocations: 156.3 kB / 1.101 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/1.036, allocations: 0 / 1.101 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002166/1.036, allocations: 23.97 kB / 1.101 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/1.036, allocations: 4 kB / 1.101 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/1.036, allocations: 4 kB / 1.101 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/1.036, allocations: 3.906 kB / 1.101 GB, free: 14.9 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/1.036, allocations: 0 / 1.101 GB, free: 14.9 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002042/1.036, allocations: 98.41 kB / 1.101 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000341/1.037, allocations: 477.4 kB / 1.102 GB, free: 14.3 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.298e-05/1.037, allocations: 81.02 kB / 1.102 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.899e-05/1.037, allocations: 4.656 kB / 1.102 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/1.037, allocations: 15.98 kB / 1.102 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.081e-05/1.037, allocations: 16.58 kB / 1.102 GB, free: 14.17 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/1.037, allocations: 5.562 kB / 1.102 GB, free: 14.16 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.795e-05/1.037, allocations: 87.28 kB / 1.102 GB, free: 14.08 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001121/1.038, allocations: 35.89 kB / 1.102 GB, free: 14.04 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002391/1.039, allocations: 111.2 kB / 1.102 GB, free: 13.92 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003157/1.039, allocations: 98.28 kB / 1.102 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/1.039, allocations: 0 / 1.102 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 9.222e-05/1.039, allocations: 24 kB / 1.102 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/1.039, allocations: 19.8 kB / 1.102 GB, free: 13.78 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003716/1.04, allocations: 92.44 kB / 1.102 GB, free: 13.67 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003852/1.04, allocations: 0.7083 MB / 1.103 GB, free: 12.94 MB / 0.7136 GB Notification: Performance of SimCode: time 6.71e-07/1.04, allocations: 0 / 1.103 GB, free: 12.94 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1)