Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_X_wSetOnly",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_X_wSetOnly",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/BuildingSystems 2.0.0-master/package.mo): time 0.7428/0.7428, allocations: 141.8 MB / 149.1 MB, free: 12.09 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 179.3 kB / 182 MB, free: 8.848 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 221.4 MB / 436.1 MB, free: 1.086 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009474/0.0009471, allocations: 94.39 kB / 0.5071 GB, free: 10.07 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001765/0.001765, allocations: 276.5 kB / 0.5885 GB, free: 6.906 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1912/0.193, allocations: 89.65 MB / 0.676 GB, free: 13.17 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3925/0.5856, allocations: 82.77 MB / 0.7569 GB, free: 138 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.404/3.99, allocations: 1.834 GB / 2.591 GB, free: 156.7 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/3.99, allocations: 93.94 kB / 2.591 GB, free: 156.7 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 3.265/7.255, allocations: 1.021 GB / 3.612 GB, free: 123.4 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/7.255, allocations: 11.97 kB / 3.612 GB, free: 123.4 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004504/7.26, allocations: 0.769 MB / 3.613 GB, free: 123.3 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003896/7.263, allocations: 1.083 MB / 3.614 GB, free: 123 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.448e-05/7.264, allocations: 30.28 kB / 3.614 GB, free: 123 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003394/7.264, allocations: 60.98 kB / 3.614 GB, free: 123 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001898/7.266, allocations: 0.8538 MB / 3.615 GB, free: 123 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002076/7.268, allocations: 1.173 MB / 3.616 GB, free: 122.7 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.585e-05/7.268, allocations: 0 / 3.616 GB, free: 122.7 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/7.268, allocations: 2.969 kB / 3.616 GB, free: 122.7 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.173e-05/7.268, allocations: 41.47 kB / 3.616 GB, free: 122.7 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008794/7.277, allocations: 5.686 MB / 3.621 GB, free: 119.8 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/7.278, allocations: 0.8726 MB / 3.622 GB, free: 119.8 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006842/7.279, allocations: 0.4931 MB / 3.623 GB, free: 119.8 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008208/7.28, allocations: 0.5882 MB / 3.623 GB, free: 119.2 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008133/7.281, allocations: 0.581 MB / 3.624 GB, free: 119.2 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=80): time 3.467e-06/7.281, allocations: 0 / 3.624 GB, free: 119.2 MB / 0.7138 GB Notification: Performance of matching and sorting (n=80): time 0.002732/7.283, allocations: 1.08 MB / 3.625 GB, free: 119.1 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/7.283, allocations: 64.45 kB / 3.625 GB, free: 119 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/7.285, allocations: 0.8645 MB / 3.626 GB, free: 118.9 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001439/7.285, allocations: 30.28 kB / 3.626 GB, free: 118.8 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00038/7.286, allocations: 422.5 kB / 3.626 GB, free: 118.6 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.000275/7.286, allocations: 262.5 kB / 3.626 GB, free: 118.5 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.849e-05/7.286, allocations: 0 / 3.626 GB, free: 118.5 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 9.45e-05/7.286, allocations: 342.5 kB / 3.627 GB, free: 118.2 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000651/7.287, allocations: 419.2 kB / 3.627 GB, free: 118.2 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/7.288, allocations: 0.7397 MB / 3.628 GB, free: 117.8 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/7.289, allocations: 481.7 kB / 3.628 GB, free: 117.8 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/7.289, allocations: 3.75 kB / 3.628 GB, free: 117.8 MB / 0.7138 GB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002075/7.291, allocations: 1.187 MB / 3.63 GB, free: 117.7 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/7.291, allocations: 10.62 kB / 3.63 GB, free: 117.7 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/7.291, allocations: 11.12 kB / 3.63 GB, free: 117.7 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.366e-05/7.291, allocations: 15.22 kB / 3.63 GB, free: 117.7 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/7.293, allocations: 325.3 kB / 3.63 GB, free: 117.7 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.496e-05/7.293, allocations: 17.02 kB / 3.63 GB, free: 117.7 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/7.295, allocations: 204.5 kB / 3.63 GB, free: 117.7 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/7.295, allocations: 60.83 kB / 3.63 GB, free: 117.7 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 117 * 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 0.000252/7.295, allocations: 147.8 kB / 3.63 GB, free: 117.6 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002763/7.295, allocations: 119.8 kB / 3.63 GB, free: 117.5 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002212/7.298, allocations: 1.185 MB / 3.632 GB, free: 117.4 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/7.298, allocations: 14.84 kB / 3.632 GB, free: 117.4 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/7.298, allocations: 0 / 3.632 GB, free: 117.4 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/7.298, allocations: 3.609 kB / 3.632 GB, free: 117.4 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004565/7.302, allocations: 2.616 MB / 3.634 GB, free: 117 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/7.302, allocations: 2.844 kB / 3.634 GB, free: 117 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/7.304, allocations: 264.4 kB / 3.634 GB, free: 117 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.946e-05/7.304, allocations: 15.03 kB / 3.634 GB, free: 117 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/7.304, allocations: 27.16 kB / 3.634 GB, free: 117 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.016e-05/7.304, allocations: 6.844 kB / 3.634 GB, free: 117 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.858e-06/7.304, allocations: 10.94 kB / 3.634 GB, free: 117 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002758/7.307, allocations: 2.14 MB / 3.637 GB, free: 116.4 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003991/7.311, allocations: 3.29 MB / 3.64 GB, free: 115.4 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007193/7.311, allocations: 329.2 kB / 3.64 GB, free: 115.2 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000336/7.312, allocations: 9.312 kB / 3.64 GB, free: 115.2 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/7.313, allocations: 151.5 kB / 3.64 GB, free: 115.2 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/7.313, allocations: 56.27 kB / 3.64 GB, free: 115.2 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/7.313, allocations: 41.58 kB / 3.64 GB, free: 115.2 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.0008689/7.314, allocations: 0.6468 MB / 3.641 GB, free: 115.1 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.002719/7.317, allocations: 0.6669 MB / 3.642 GB, free: 115.1 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 3 (heaHigPow.Xi,cooLimPow.Xi,heaCooUnl.Xi) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.00293/7.32, allocations: 2.139 MB / 3.644 GB, free: 114.5 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.001707/7.322, allocations: 1.037 MB / 3.645 GB, free: 114.5 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/7.322, allocations: 2.938 kB / 3.645 GB, free: 114.5 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0007786/7.322, allocations: 0.5365 MB / 3.645 GB, free: 114.5 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002144/7.325, allocations: 405.2 kB / 3.646 GB, free: 114.5 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01576/7.34, allocations: 2.8 MB / 3.648 GB, free: 113.9 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001634/7.342, allocations: 1.364 MB / 3.65 GB, free: 113.2 MB / 0.7138 GB Notification: Performance of SimCode: time 1.022e-06/7.342, allocations: 3.391 kB / 3.65 GB, free: 113.2 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_X_wSetOnly_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_X_wSetOnly.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_X_wSetOnly.pipe 2>&1)