Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.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.Media.Examples.WaterDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck",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.8166/0.8166, allocations: 143.4 MB / 158.3 MB, free: 5.766 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 169.1 kB / 191.5 MB, free: 5.758 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.401/1.401, allocations: 223.2 MB / 447.7 MB, free: 6.551 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.000852/0.0008519, allocations: 96.25 kB / 0.5188 GB, free: 2.906 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001757/0.001757, allocations: 275.7 kB / 0.6005 GB, free: 48.97 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000406/0.0004061, allocations: 16 kB / 0.6929 GB, free: 2.199 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3399, allocations: 82.76 MB / 0.7738 GB, free: 26.19 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6885/1.028, allocations: 337.8 MB / 1.104 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/1.029, allocations: 79.7 kB / 1.104 GB, free: 1.188 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02966/1.058, allocations: 13.4 MB / 1.117 GB, free: 6.559 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.683e-06/1.059, allocations: 0 / 1.117 GB, free: 6.559 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.29e-06/1.059, allocations: 0 / 1.117 GB, free: 6.559 MB / 0.6511 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.0003536/1.059, allocations: 346.7 kB / 1.117 GB, free: 6.176 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/1.059, allocations: 16.02 kB / 1.117 GB, free: 6.16 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.833e-05/1.059, allocations: 30.56 kB / 1.117 GB, free: 6.121 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.238e-05/1.059, allocations: 4 kB / 1.117 GB, free: 6.117 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.6e-05/1.059, allocations: 178.2 kB / 1.117 GB, free: 5.906 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.277e-06/1.059, allocations: 0 / 1.117 GB, free: 5.906 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.232e-05/1.059, allocations: 11.53 kB / 1.117 GB, free: 5.898 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/1.059, allocations: 49.36 kB / 1.117 GB, free: 5.848 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/1.059, allocations: 0 / 1.117 GB, free: 5.848 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/1.059, allocations: 3.938 kB / 1.117 GB, free: 5.844 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/1.059, allocations: 0 / 1.117 GB, free: 5.844 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.822e-05/1.059, allocations: 27.72 kB / 1.117 GB, free: 5.82 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001602/1.06, allocations: 165.2 kB / 1.118 GB, free: 5.617 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 8.042e-05/1.06, allocations: 51 kB / 1.118 GB, free: 5.566 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006614/1.06, allocations: 0.5981 MB / 1.118 GB, free: 4.875 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/1.06, allocations: 34.56 kB / 1.118 GB, free: 4.832 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/1.06, allocations: 0 / 1.118 GB, free: 4.832 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7): time 0.0005376/1.061, allocations: 297.6 kB / 1.119 GB, free: 4.512 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/1.061, allocations: 55.36 kB / 1.119 GB, free: 4.445 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.796e-05/1.061, allocations: 96.42 kB / 1.119 GB, free: 4.348 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/1.061, allocations: 32.95 kB / 1.119 GB, free: 4.312 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 3.793e-05/1.061, allocations: 88.05 kB / 1.119 GB, free: 4.223 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/1.061, allocations: 26.64 kB / 1.119 GB, free: 4.199 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-06/1.061, allocations: 7 kB / 1.119 GB, free: 4.195 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.869e-05/1.061, allocations: 310.8 kB / 1.119 GB, free: 3.883 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.57e-05/1.061, allocations: 15.36 kB / 1.119 GB, free: 3.871 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.191e-05/1.061, allocations: 51.08 kB / 1.119 GB, free: 3.809 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.834e-05/1.061, allocations: 22.69 kB / 1.119 GB, free: 3.793 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/1.061, allocations: 0 / 1.119 GB, free: 3.793 MB / 0.6511 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001222/1.062, allocations: 94.2 kB / 1.119 GB, free: 3.707 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/1.062, allocations: 5.562 kB / 1.119 GB, free: 3.703 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/1.062, allocations: 8.141 kB / 1.119 GB, free: 3.695 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/1.062, allocations: 0 / 1.119 GB, free: 3.695 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.662e-05/1.062, allocations: 31.31 kB / 1.119 GB, free: 3.668 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/1.062, allocations: 11.97 kB / 1.119 GB, free: 3.656 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.878e-05/1.062, allocations: 3.953 kB / 1.119 GB, free: 3.652 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/1.062, allocations: 4 kB / 1.119 GB, free: 3.648 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 7.759e-05/1.062, allocations: 113.9 kB / 1.119 GB, free: 3.531 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.619e-05/1.062, allocations: 7.375 kB / 1.119 GB, free: 3.527 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.922e-05/1.062, allocations: 7.469 kB / 1.119 GB, free: 3.527 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/1.062, allocations: 0 / 1.119 GB, free: 3.527 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/1.062, allocations: 0 / 1.119 GB, free: 3.527 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/1.062, allocations: 7.938 kB / 1.12 GB, free: 3.52 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002306/1.062, allocations: 180.4 kB / 1.12 GB, free: 3.301 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/1.062, allocations: 0 / 1.12 GB, free: 3.301 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.674e-05/1.062, allocations: 23.92 kB / 1.12 GB, free: 3.277 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/1.062, allocations: 0 / 1.12 GB, free: 3.277 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.214e-06/1.062, allocations: 0 / 1.12 GB, free: 3.277 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/1.062, allocations: 0 / 1.12 GB, free: 3.277 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/1.062, allocations: 0 / 1.12 GB, free: 3.277 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001684/1.062, allocations: 179.5 kB / 1.12 GB, free: 3.098 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.587e-05/1.063, allocations: 77.11 kB / 1.12 GB, free: 3.004 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/1.063, allocations: 0 / 1.12 GB, free: 3.004 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/1.063, allocations: 11.22 kB / 1.12 GB, free: 2.996 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.722e-05/1.063, allocations: 7.938 kB / 1.12 GB, free: 2.988 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-06/1.063, allocations: 0 / 1.12 GB, free: 2.988 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 3.87e-05/1.063, allocations: 83.03 kB / 1.12 GB, free: 2.91 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.11e-07/1.063, allocations: 0 / 1.12 GB, free: 2.91 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002465/1.063, allocations: 23.55 kB / 1.12 GB, free: 2.891 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0004529/1.063, allocations: 0.7327 MB / 1.121 GB, free: 2.145 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001034/1.064, allocations: 42.92 kB / 1.121 GB, free: 2.109 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/1.064, allocations: 0 / 1.121 GB, free: 2.109 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.43e-05/1.064, allocations: 19.42 kB / 1.121 GB, free: 2.094 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/1.064, allocations: 4 kB / 1.121 GB, free: 2.09 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/1.065, allocations: 1.43 MB / 1.122 GB, free: 0.6211 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/1.065, allocations: 0.6848 MB / 1.123 GB, free: 15.91 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 5.867e-05/1.065, allocations: 12.08 kB / 1.123 GB, free: 15.9 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.427e-05/1.065, allocations: 14.8 kB / 1.123 GB, free: 15.89 MB / 0.6667 GB Notification: Performance of SimCode: time 2.2e-07/1.065, allocations: 0 / 1.123 GB, free: 15.89 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01191/1.077, allocations: 1.809 MB / 1.125 GB, free: 14.21 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001842/1.077, allocations: 181.9 kB / 1.125 GB, free: 13.97 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.466/2.543, allocations: 0 / 1.125 GB, free: 13.97 MB / 0.6667 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe 2>&1)