Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.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.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.6871/0.6871, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 186.6 kB / 187.3 MB, free: 11.87 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.204/1.204, allocations: 221.3 MB / 441.4 MB, free: 4.605 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008515/0.0008515, allocations: 95.39 kB / 0.5124 GB, free: 24.26 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001695/0.001695, allocations: 275.5 kB / 0.5939 GB, free: 7.965 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.784e-05/2.786e-05, allocations: 4 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3402, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5651/0.9053, allocations: 332.7 MB / 1.089 GB, free: 8.656 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.9056, allocations: 82.92 kB / 1.089 GB, free: 8.613 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.02967/0.9353, allocations: 14.18 MB / 1.103 GB, free: 13.24 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.052e-06/0.9353, allocations: 3.938 kB / 1.103 GB, free: 13.24 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.9353, allocations: 0 / 1.103 GB, free: 13.24 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006352/0.9359, allocations: 464.6 kB / 1.104 GB, free: 12.75 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.936, allocations: 11.97 kB / 1.104 GB, free: 12.74 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.872e-05/0.936, allocations: 38 kB / 1.104 GB, free: 12.7 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.285e-05/0.9361, allocations: 15.19 kB / 1.104 GB, free: 12.68 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.9362, allocations: 179.9 kB / 1.104 GB, free: 12.47 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.9362, allocations: 11.34 kB / 1.104 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.332e-05/0.9363, allocations: 11.31 kB / 1.104 GB, free: 12.45 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.9364, allocations: 103 kB / 1.104 GB, free: 12.37 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.9364, allocations: 0 / 1.104 GB, free: 12.37 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.9365, allocations: 0 / 1.104 GB, free: 12.37 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.77e-06/0.9365, allocations: 4 kB / 1.104 GB, free: 12.37 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001499/0.9366, allocations: 89.53 kB / 1.104 GB, free: 12.31 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008414/0.9375, allocations: 474.7 kB / 1.105 GB, free: 11.86 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001444/0.9376, allocations: 101.7 kB / 1.105 GB, free: 11.79 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.606e-05/0.9377, allocations: 46.73 kB / 1.105 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001163/0.9389, allocations: 0.9728 MB / 1.106 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.9389, allocations: 42.52 kB / 1.106 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.9389, allocations: 0 / 1.106 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of matching and sorting (n=12): time 0.0002233/0.9391, allocations: 111.1 kB / 1.106 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.9392, allocations: 55.41 kB / 1.106 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.9393, allocations: 146 kB / 1.106 GB, free: 10.36 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.9393, allocations: 29.7 kB / 1.106 GB, free: 10.32 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.783e-05/0.9394, allocations: 111.4 kB / 1.106 GB, free: 10.22 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.549e-05/0.9394, allocations: 39.08 kB / 1.106 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-06/0.9394, allocations: 6.688 kB / 1.106 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.884e-05/0.9395, allocations: 326.3 kB / 1.106 GB, free: 9.859 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.685e-05/0.9396, allocations: 49.38 kB / 1.106 GB, free: 9.828 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.9397, allocations: 84.98 kB / 1.107 GB, free: 9.754 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.9398, allocations: 59.41 kB / 1.107 GB, free: 9.715 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.9398, allocations: 4 kB / 1.107 GB, free: 9.711 MB / 0.6355 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002797/0.9401, allocations: 197.3 kB / 1.107 GB, free: 9.555 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.9401, allocations: 8 kB / 1.107 GB, free: 9.547 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.9402, allocations: 0 / 1.107 GB, free: 9.547 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.9402, allocations: 7.953 kB / 1.107 GB, free: 9.539 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002574/0.9404, allocations: 59.77 kB / 1.107 GB, free: 9.484 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.9405, allocations: 8.031 kB / 1.107 GB, free: 9.477 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.9406, allocations: 31.2 kB / 1.107 GB, free: 9.449 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.9406, allocations: 8 kB / 1.107 GB, free: 9.441 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.111e-05/0.9407, allocations: 111.9 kB / 1.107 GB, free: 9.332 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.04e-05/0.9407, allocations: 11.81 kB / 1.107 GB, free: 9.32 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002202/0.941, allocations: 142.6 kB / 1.107 GB, free: 9.207 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.941, allocations: 7.953 kB / 1.107 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.941, allocations: 0 / 1.107 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.941, allocations: 0 / 1.107 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001775/0.9412, allocations: 210 kB / 1.107 GB, free: 8.965 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.9412, allocations: 0 / 1.107 GB, free: 8.965 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001541/0.9413, allocations: 35.97 kB / 1.107 GB, free: 8.93 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.9414, allocations: 0 / 1.107 GB, free: 8.93 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.9414, allocations: 3.5 kB / 1.107 GB, free: 8.93 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.9414, allocations: 8 kB / 1.107 GB, free: 8.922 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.9414, allocations: 7.953 kB / 1.107 GB, free: 8.914 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000185/0.9416, allocations: 216.1 kB / 1.108 GB, free: 8.711 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.637e-05/0.9416, allocations: 88.92 kB / 1.108 GB, free: 8.605 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.9416, allocations: 0 / 1.108 GB, free: 8.605 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.9418, allocations: 23.48 kB / 1.108 GB, free: 8.586 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.749e-05/0.9418, allocations: 7.984 kB / 1.108 GB, free: 8.578 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.9418, allocations: 7.953 kB / 1.108 GB, free: 8.57 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.142e-05/0.9419, allocations: 115.2 kB / 1.108 GB, free: 8.469 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9419, allocations: 0 / 1.108 GB, free: 8.469 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.00028/0.9422, allocations: 71.42 kB / 1.108 GB, free: 8.406 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.0005903/0.9428, allocations: 0.8118 MB / 1.109 GB, free: 7.598 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000219/0.943, allocations: 122.5 kB / 1.109 GB, free: 7.516 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.943, allocations: 0 / 1.109 GB, free: 7.516 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.723e-05/0.9431, allocations: 43.25 kB / 1.109 GB, free: 7.484 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.9433, allocations: 28.11 kB / 1.109 GB, free: 7.461 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004446/0.9438, allocations: 209.5 kB / 1.109 GB, free: 7.242 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.944, allocations: 0.7164 MB / 1.11 GB, free: 6.5 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 9.91e-05/0.9441, allocations: 25.56 kB / 1.11 GB, free: 6.477 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.333e-05/0.9442, allocations: 30.62 kB / 1.11 GB, free: 6.461 MB / 0.6355 GB Notification: Performance of SimCode: time 2.71e-07/0.9442, allocations: 0 / 1.11 GB, free: 6.461 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01421/0.9584, allocations: 4.291 MB / 1.114 GB, free: 2.375 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.9586, allocations: 180.7 kB / 1.114 GB, free: 2.152 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.522/2.481, allocations: 1.688 kB / 1.114 GB, free: 2.152 MB / 0.6355 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1)