Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",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.17/2.17, allocations: 284.8 MB / 292.1 MB, free: 9.914 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.001616/0.001616, allocations: 183.8 kB / 360.3 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.67/1.67, allocations: 205.1 MB / 0.6187 GB, free: 3.328 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001255/0.001255, allocations: 93.5 kB / 0.7317 GB, free: 1.785 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.4815/0.4828, allocations: 121.4 MB / 0.8502 GB, free: 149.9 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.6704, allocations: 115.3 MB / 0.9628 GB, free: 56.95 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5839/1.254, allocations: 138.5 MB / 1.098 GB, free: 37 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003098/1.255, allocations: 90.55 kB / 1.098 GB, free: 37 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.006135/1.261, allocations: 1.574 MB / 1.1 GB, free: 36.57 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/1.261, allocations: 8.344 kB / 1.1 GB, free: 36.57 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.317e-05/1.261, allocations: 7.812 kB / 1.1 GB, free: 36.57 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/1.261, allocations: 176.6 kB / 1.1 GB, free: 36.36 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/1.261, allocations: 0 / 1.1 GB, free: 36.36 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/1.261, allocations: 5.469 kB / 1.1 GB, free: 36.36 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001305/1.261, allocations: 27.06 kB / 1.1 GB, free: 36.36 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001579/1.261, allocations: 84.53 kB / 1.1 GB, free: 36.31 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.088e-06/1.261, allocations: 0 / 1.1 GB, free: 36.31 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/1.262, allocations: 3.906 kB / 1.1 GB, free: 36.3 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/1.262, allocations: 0 / 1.1 GB, free: 36.3 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004915/1.262, allocations: 300.6 kB / 1.1 GB, free: 36.06 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/1.262, allocations: 39.39 kB / 1.1 GB, free: 36.04 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.524e-05/1.262, allocations: 18.36 kB / 1.1 GB, free: 36.03 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/1.262, allocations: 7.781 kB / 1.1 GB, free: 36.03 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.818e-05/1.262, allocations: 32.19 kB / 1.1 GB, free: 35.99 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 2.675e-06/1.262, allocations: 0 / 1.1 GB, free: 35.99 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4): time 0.0002141/1.263, allocations: 65.06 kB / 1.1 GB, free: 35.95 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.68e-05/1.263, allocations: 78.89 kB / 1.1 GB, free: 35.86 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.79e-05/1.263, allocations: 116.2 kB / 1.101 GB, free: 35.76 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/1.263, allocations: 29.45 kB / 1.101 GB, free: 35.73 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.375e-05/1.263, allocations: 99.89 kB / 1.101 GB, free: 35.64 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.307e-05/1.263, allocations: 13.06 kB / 1.101 GB, free: 35.63 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.133e-06/1.263, allocations: 0 / 1.101 GB, free: 35.63 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 5.54e-05/1.263, allocations: 317.4 kB / 1.101 GB, free: 35.32 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.236e-05/1.263, allocations: 18.44 kB / 1.101 GB, free: 35.31 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.404e-05/1.263, allocations: 32.8 kB / 1.101 GB, free: 35.3 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.79e-05/1.263, allocations: 9.375 kB / 1.101 GB, free: 35.3 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/1.263, allocations: 0 / 1.101 GB, free: 35.3 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001589/1.263, allocations: 69.3 kB / 1.101 GB, free: 35.26 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/1.263, allocations: 6.406 kB / 1.101 GB, free: 35.26 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/1.263, allocations: 0 / 1.101 GB, free: 35.26 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/1.263, allocations: 0 / 1.101 GB, free: 35.26 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/1.263, allocations: 17.81 kB / 1.101 GB, free: 35.25 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/1.263, allocations: 3.875 kB / 1.101 GB, free: 35.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/1.264, allocations: 22.22 kB / 1.101 GB, free: 35.25 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/1.264, allocations: 3.938 kB / 1.101 GB, free: 35.25 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 6.264e-05/1.264, allocations: 107.9 kB / 1.101 GB, free: 35.14 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.988e-05/1.264, allocations: 7.781 kB / 1.101 GB, free: 35.13 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.768e-05/1.264, allocations: 10.94 kB / 1.101 GB, free: 35.12 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/1.264, allocations: 3.938 kB / 1.101 GB, free: 35.11 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/1.264, allocations: 0 / 1.101 GB, free: 35.11 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/1.264, allocations: 0 / 1.101 GB, free: 35.11 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001656/1.264, allocations: 169.5 kB / 1.101 GB, free: 34.95 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/1.264, allocations: 0 / 1.101 GB, free: 34.95 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/1.264, allocations: 10.62 kB / 1.101 GB, free: 34.95 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-06/1.264, allocations: 8.344 kB / 1.101 GB, free: 34.95 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/1.264, allocations: 0 / 1.101 GB, free: 34.95 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/1.264, allocations: 0 / 1.101 GB, free: 34.95 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/1.264, allocations: 0 / 1.101 GB, free: 34.95 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001569/1.264, allocations: 165.4 kB / 1.102 GB, free: 34.81 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000193/1.265, allocations: 0.5258 MB / 1.102 GB, free: 34.3 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.725e-05/1.265, allocations: 88.62 kB / 1.102 GB, free: 34.2 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/1.265, allocations: 3.906 kB / 1.102 GB, free: 34.2 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/1.265, allocations: 15.88 kB / 1.102 GB, free: 34.2 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.908e-05/1.265, allocations: 7.438 kB / 1.102 GB, free: 34.2 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/1.265, allocations: 4 kB / 1.102 GB, free: 34.2 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.06e-05/1.265, allocations: 100.2 kB / 1.102 GB, free: 34.12 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001093/1.266, allocations: 11.56 kB / 1.102 GB, free: 34.12 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001058/1.266, allocations: 104.1 kB / 1.102 GB, free: 34.04 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.000147/1.266, allocations: 36.94 kB / 1.102 GB, free: 34.03 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/1.266, allocations: 0 / 1.102 GB, free: 34.03 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.924e-05/1.266, allocations: 17.31 kB / 1.102 GB, free: 34.03 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/1.267, allocations: 11.53 kB / 1.103 GB, free: 34.02 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003555/1.267, allocations: 93.38 kB / 1.103 GB, free: 33.95 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002458/1.267, allocations: 0.7058 MB / 1.103 GB, free: 49.25 MB / 0.7292 GB Notification: Performance of SimCode: time 1.152e-06/1.267, allocations: 3.938 kB / 1.103 GB, free: 49.24 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)