Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.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.IntegerSwitch,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",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.142/2.142, allocations: 284.8 MB / 292.1 MB, free: 10.82 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.001515/0.001515, allocations: 177.3 kB / 360.3 MB, free: 7.523 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.636/1.636, allocations: 205.1 MB / 0.6187 GB, free: 13.21 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.001229/0.001228, allocations: 91.61 kB / 0.7317 GB, free: 45.1 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2429/0.2442, allocations: 121.4 MB / 0.8502 GB, free: 3.895 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.565/0.8092, allocations: 115.2 MB / 0.9628 GB, free: 78.62 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2331/1.042, allocations: 137.5 MB / 1.097 GB, free: 3.387 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/1.043, allocations: 67.95 kB / 1.097 GB, free: 3.32 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0325/1.075, allocations: 4.683 MB / 1.102 GB, free: 14.65 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.215e-05/1.075, allocations: 12.5 kB / 1.102 GB, free: 14.64 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/1.076, allocations: 19.81 kB / 1.102 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/1.076, allocations: 171.6 kB / 1.102 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/1.076, allocations: 0 / 1.102 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/1.076, allocations: 23.91 kB / 1.102 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002352/1.076, allocations: 37.2 kB / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003122/1.077, allocations: 86.42 kB / 1.102 GB, free: 14.26 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/1.077, allocations: 0 / 1.102 GB, free: 14.26 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/1.077, allocations: 3.984 kB / 1.102 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/1.077, allocations: 4 kB / 1.102 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/1.078, allocations: 472.8 kB / 1.102 GB, free: 13.75 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/1.079, allocations: 62.47 kB / 1.103 GB, free: 13.68 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/1.079, allocations: 28.98 kB / 1.103 GB, free: 13.65 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/1.079, allocations: 0 / 1.103 GB, free: 13.65 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002357/1.079, allocations: 83.55 kB / 1.103 GB, free: 13.55 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=14): time 2.485e-06/1.079, allocations: 0 / 1.103 GB, free: 13.55 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14): time 0.0005181/1.08, allocations: 117.4 kB / 1.103 GB, free: 13.43 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/1.08, allocations: 59.39 kB / 1.103 GB, free: 13.36 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002395/1.08, allocations: 140.5 kB / 1.103 GB, free: 13.23 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 9.081e-05/1.08, allocations: 33.7 kB / 1.103 GB, free: 13.19 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/1.08, allocations: 104.5 kB / 1.103 GB, free: 13.08 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 5.846e-05/1.08, allocations: 27.56 kB / 1.103 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.964e-05/1.08, allocations: 4 kB / 1.103 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001863/1.08, allocations: 330.8 kB / 1.103 GB, free: 12.72 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004783/1.081, allocations: 75.98 kB / 1.103 GB, free: 12.64 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005014/1.082, allocations: 130.6 kB / 1.104 GB, free: 12.5 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/1.083, allocations: 119.8 kB / 1.104 GB, free: 12.38 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/1.083, allocations: 0 / 1.104 GB, free: 12.38 MB / 0.7136 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001918/1.085, allocations: 306.4 kB / 1.104 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/1.085, allocations: 4 kB / 1.104 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/1.085, allocations: 2.188 kB / 1.104 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.395e-05/1.085, allocations: 4 kB / 1.104 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/1.085, allocations: 17.38 kB / 1.104 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.533e-05/1.085, allocations: 4 kB / 1.104 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/1.086, allocations: 120 kB / 1.104 GB, free: 11.93 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.942e-05/1.086, allocations: 19.98 kB / 1.104 GB, free: 11.91 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * 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.0002157/1.087, allocations: 124.7 kB / 1.104 GB, free: 11.78 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.344e-05/1.087, allocations: 15.81 kB / 1.104 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.114e-05/1.087, allocations: 16.48 kB / 1.104 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/1.087, allocations: 4 kB / 1.104 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/1.087, allocations: 0 / 1.104 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/1.087, allocations: 0 / 1.104 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003754/1.087, allocations: 186.2 kB / 1.105 GB, free: 11.53 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/1.087, allocations: 0 / 1.105 GB, free: 11.53 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/1.087, allocations: 8 kB / 1.105 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/1.087, allocations: 4 kB / 1.105 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/1.087, allocations: 3.906 kB / 1.105 GB, free: 11.51 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/1.087, allocations: 8.594 kB / 1.105 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.738e-06/1.087, allocations: 5.922 kB / 1.105 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004317/1.088, allocations: 136.9 kB / 1.105 GB, free: 11.35 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006158/1.089, allocations: 0.5078 MB / 1.105 GB, free: 10.82 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/1.089, allocations: 88.92 kB / 1.105 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.127e-05/1.089, allocations: 0 / 1.105 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.368e-05/1.089, allocations: 0 / 1.105 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/1.089, allocations: 12.55 kB / 1.105 GB, free: 10.7 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/1.089, allocations: 5.75 kB / 1.105 GB, free: 10.7 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.000139/1.089, allocations: 107.8 kB / 1.105 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.002233/1.091, allocations: 55.83 kB / 1.105 GB, free: 10.54 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002723/1.092, allocations: 115.2 kB / 1.106 GB, free: 10.42 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0009235/1.093, allocations: 245 kB / 1.106 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/1.093, allocations: 3.75 kB / 1.106 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002077/1.093, allocations: 51.92 kB / 1.106 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005981/1.094, allocations: 16.36 kB / 1.106 GB, free: 10.09 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008119/1.094, allocations: 157.7 kB / 1.106 GB, free: 9.918 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005794/1.095, allocations: 0.7231 MB / 1.107 GB, free: 9.168 MB / 0.7136 GB Notification: Performance of SimCode: time 1.412e-06/1.095, allocations: 0 / 1.107 GB, free: 9.168 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)