Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Logical.Validation.Switch,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.381/1.381, allocations: 289.8 MB / 297.1 MB, free: 6.668 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.0009912/0.0009913, allocations: 177.3 kB / 366.3 MB, free: 1.984 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.067/1.067, allocations: 205.1 MB / 0.6256 GB, free: 5.809 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.0007969/0.0007969, allocations: 89.3 kB / 0.7395 GB, free: 39.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2052/0.206, allocations: 122.4 MB / 0.8591 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4283/0.6343, allocations: 116.3 MB / 0.9727 GB, free: 68.26 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1412/0.7755, allocations: 138.5 MB / 1.108 GB, free: 9.988 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001798/0.7757, allocations: 76.52 kB / 1.108 GB, free: 9.914 MB / 0.7136 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.006735/0.7825, allocations: 2.347 MB / 1.11 GB, free: 7.527 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.7825, allocations: 8 kB / 1.11 GB, free: 7.52 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.399e-05/0.7826, allocations: 11.91 kB / 1.11 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.7827, allocations: 174.9 kB / 1.11 GB, free: 7.297 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.7827, allocations: 0 / 1.11 GB, free: 7.297 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.218e-05/0.7828, allocations: 4 kB / 1.11 GB, free: 7.293 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.182e-05/0.7828, allocations: 24 kB / 1.11 GB, free: 7.27 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.822e-05/0.7829, allocations: 55.17 kB / 1.111 GB, free: 7.211 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.7829, allocations: 3.938 kB / 1.111 GB, free: 7.207 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.783, allocations: 4 kB / 1.111 GB, free: 7.203 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.783, allocations: 0 / 1.111 GB, free: 7.203 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004131/0.7834, allocations: 307.8 kB / 1.111 GB, free: 6.867 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 5.386e-05/0.7835, allocations: 26.58 kB / 1.111 GB, free: 6.832 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.799e-05/0.7835, allocations: 20.86 kB / 1.111 GB, free: 6.809 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.7835, allocations: 4 kB / 1.111 GB, free: 6.805 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.399e-05/0.7836, allocations: 71.34 kB / 1.111 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.7836, allocations: 0 / 1.111 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0001736/0.7838, allocations: 65.59 kB / 1.111 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.017e-05/0.7838, allocations: 55.41 kB / 1.111 GB, free: 6.586 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.976e-05/0.7839, allocations: 117.2 kB / 1.111 GB, free: 6.461 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.784, allocations: 25.7 kB / 1.111 GB, free: 6.43 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.618e-05/0.784, allocations: 92.12 kB / 1.111 GB, free: 6.336 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.784, allocations: 19.81 kB / 1.111 GB, free: 6.316 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.246e-05/0.7841, allocations: 1.781 kB / 1.111 GB, free: 6.316 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.7842, allocations: 318.8 kB / 1.112 GB, free: 5.996 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.733e-05/0.7843, allocations: 35.98 kB / 1.112 GB, free: 5.961 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.036e-05/0.7844, allocations: 46.58 kB / 1.112 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.7845, allocations: 51.89 kB / 1.112 GB, free: 5.855 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.7846, allocations: 4 kB / 1.112 GB, free: 5.852 MB / 0.7136 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003138/0.7849, allocations: 121.5 kB / 1.112 GB, free: 5.727 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.7849, allocations: 8 kB / 1.112 GB, free: 5.719 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.7849, allocations: 0 / 1.112 GB, free: 5.719 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.7849, allocations: 0 / 1.112 GB, free: 5.719 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.7851, allocations: 39.97 kB / 1.112 GB, free: 5.68 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.7851, allocations: 0 / 1.112 GB, free: 5.68 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.7853, allocations: 64.02 kB / 1.112 GB, free: 5.617 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.502e-05/0.7854, allocations: 8 kB / 1.112 GB, free: 5.609 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 6.914e-05/0.7855, allocations: 115.9 kB / 1.112 GB, free: 5.492 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.447e-05/0.7855, allocations: 9.594 kB / 1.112 GB, free: 5.484 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.937e-05/0.7855, allocations: 8.375 kB / 1.112 GB, free: 5.477 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.7855, allocations: 0 / 1.112 GB, free: 5.477 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.7855, allocations: 0 / 1.112 GB, free: 5.477 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.7855, allocations: 4 kB / 1.112 GB, free: 5.473 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.7856, allocations: 154.3 kB / 1.112 GB, free: 5.285 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.7857, allocations: 0 / 1.112 GB, free: 5.285 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001197/0.7858, allocations: 31.97 kB / 1.112 GB, free: 5.254 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.7858, allocations: 0 / 1.112 GB, free: 5.254 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.7858, allocations: 3.938 kB / 1.112 GB, free: 5.25 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.7858, allocations: 3.906 kB / 1.112 GB, free: 5.246 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.7858, allocations: 0 / 1.112 GB, free: 5.246 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001249/0.786, allocations: 97.03 kB / 1.112 GB, free: 5.133 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002073/0.7862, allocations: 473.4 kB / 1.113 GB, free: 4.648 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.686e-05/0.7862, allocations: 89 kB / 1.113 GB, free: 4.543 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.7862, allocations: 0 / 1.113 GB, free: 4.543 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.7864, allocations: 19.98 kB / 1.113 GB, free: 4.523 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.805e-05/0.7864, allocations: 11.92 kB / 1.113 GB, free: 4.512 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.7864, allocations: 0.5625 kB / 1.113 GB, free: 4.512 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.246e-05/0.7865, allocations: 98.09 kB / 1.113 GB, free: 4.418 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008149/0.7873, allocations: 31.89 kB / 1.113 GB, free: 4.387 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.0001408/0.7874, allocations: 111.2 kB / 1.113 GB, free: 4.27 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001821/0.7876, allocations: 97.81 kB / 1.113 GB, free: 4.168 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.7876, allocations: 0 / 1.113 GB, free: 4.168 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.275e-05/0.7877, allocations: 25.19 kB / 1.113 GB, free: 4.145 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001697/0.7879, allocations: 14.73 kB / 1.113 GB, free: 4.133 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002574/0.7881, allocations: 95.88 kB / 1.113 GB, free: 4.02 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.7884, allocations: 0.7075 MB / 1.114 GB, free: 3.285 MB / 0.7136 GB Notification: Performance of SimCode: time 2.71e-07/0.7884, allocations: 0 / 1.114 GB, free: 3.285 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1)