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.8002/0.8002, allocations: 141.7 MB / 154.3 MB, free: 15.48 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.001179/0.001178, allocations: 181 kB / 187.3 MB, free: 11.88 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.539/1.539, allocations: 221.3 MB / 441.4 MB, free: 4.668 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.001007/0.001007, allocations: 98.58 kB / 0.5124 GB, free: 24.13 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001901/0.001901, allocations: 266.3 kB / 0.5939 GB, free: 7.973 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.128e-05/4.131e-05, allocations: 7.984 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4891/0.4891, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9088/1.398, allocations: 337.7 MB / 1.094 GB, free: 3.754 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003392/1.398, allocations: 72.77 kB / 1.094 GB, free: 3.715 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.03375/1.432, allocations: 13.34 MB / 1.107 GB, free: 9.16 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.286e-06/1.432, allocations: 0 / 1.107 GB, free: 9.16 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.195e-06/1.432, allocations: 0 / 1.107 GB, free: 9.16 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005046/1.433, allocations: 348.9 kB / 1.108 GB, free: 8.781 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.007e-05/1.433, allocations: 8.031 kB / 1.108 GB, free: 8.773 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.583e-05/1.433, allocations: 30.56 kB / 1.108 GB, free: 8.734 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/1.433, allocations: 7.984 kB / 1.108 GB, free: 8.727 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001716/1.433, allocations: 163 kB / 1.108 GB, free: 8.527 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/1.433, allocations: 6.938 kB / 1.108 GB, free: 8.523 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.863e-05/1.433, allocations: 7.906 kB / 1.108 GB, free: 8.516 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001641/1.434, allocations: 52.12 kB / 1.108 GB, free: 8.465 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/1.434, allocations: 7.938 kB / 1.108 GB, free: 8.457 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/1.434, allocations: 3.375 kB / 1.108 GB, free: 8.457 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/1.434, allocations: 7.984 kB / 1.108 GB, free: 8.449 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.951e-05/1.434, allocations: 9.406 kB / 1.108 GB, free: 8.441 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002623/1.434, allocations: 168.6 kB / 1.108 GB, free: 8.234 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/1.434, allocations: 53.06 kB / 1.108 GB, free: 8.18 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.546e-05/1.434, allocations: 19.98 kB / 1.108 GB, free: 8.16 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009953/1.435, allocations: 0.6165 MB / 1.109 GB, free: 7.449 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.099e-05/1.435, allocations: 34.06 kB / 1.109 GB, free: 7.41 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=5): time 1.573e-06/1.435, allocations: 0 / 1.109 GB, free: 7.41 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0007342/1.436, allocations: 294.8 kB / 1.109 GB, free: 7.086 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/1.436, allocations: 62.8 kB / 1.109 GB, free: 7.016 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.078e-05/1.436, allocations: 89 kB / 1.109 GB, free: 6.922 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/1.436, allocations: 29.02 kB / 1.109 GB, free: 6.891 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.234e-05/1.436, allocations: 84.05 kB / 1.109 GB, free: 6.805 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.114e-05/1.436, allocations: 30.64 kB / 1.109 GB, free: 6.777 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-06/1.436, allocations: 3.438 kB / 1.109 GB, free: 6.777 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000157/1.436, allocations: 318.8 kB / 1.11 GB, free: 6.457 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.203e-05/1.436, allocations: 11.5 kB / 1.11 GB, free: 6.449 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.175e-05/1.437, allocations: 56.03 kB / 1.11 GB, free: 6.383 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.484e-05/1.437, allocations: 19.8 kB / 1.11 GB, free: 6.367 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/1.437, allocations: 0 / 1.11 GB, free: 6.367 MB / 0.6355 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001577/1.437, allocations: 101.5 kB / 1.11 GB, free: 6.273 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/1.437, allocations: 8 kB / 1.11 GB, free: 6.266 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/1.437, allocations: 0 / 1.11 GB, free: 6.266 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/1.437, allocations: 4 kB / 1.11 GB, free: 6.262 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.392e-05/1.437, allocations: 19.94 kB / 1.11 GB, free: 6.242 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/1.437, allocations: 3.953 kB / 1.11 GB, free: 6.238 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.274e-05/1.437, allocations: 7.984 kB / 1.11 GB, free: 6.23 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/1.437, allocations: 11.06 kB / 1.11 GB, free: 6.223 MB / 0.6355 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 () * 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 9.679e-05/1.437, allocations: 112 kB / 1.11 GB, free: 6.109 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.357e-05/1.437, allocations: 4 kB / 1.11 GB, free: 6.105 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.945e-05/1.437, allocations: 6.906 kB / 1.11 GB, free: 6.098 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/1.437, allocations: 4 kB / 1.11 GB, free: 6.094 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/1.437, allocations: 0 / 1.11 GB, free: 6.094 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/1.437, allocations: 3.953 kB / 1.11 GB, free: 6.09 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002918/1.438, allocations: 172.4 kB / 1.11 GB, free: 5.879 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/1.438, allocations: 0 / 1.11 GB, free: 5.879 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.137e-05/1.438, allocations: 19.92 kB / 1.11 GB, free: 5.859 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/1.438, allocations: 0 / 1.11 GB, free: 5.859 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/1.438, allocations: 4 kB / 1.11 GB, free: 5.855 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/1.438, allocations: 4 kB / 1.11 GB, free: 5.852 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.438, allocations: 1.016 kB / 1.11 GB, free: 5.852 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002209/1.438, allocations: 167.2 kB / 1.11 GB, free: 5.684 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-05/1.438, allocations: 85.14 kB / 1.11 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/1.438, allocations: 3.375 kB / 1.11 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.692e-05/1.438, allocations: 8 kB / 1.11 GB, free: 5.574 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.415e-05/1.438, allocations: 3.984 kB / 1.11 GB, free: 5.57 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/1.438, allocations: 8 kB / 1.11 GB, free: 5.562 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.646e-05/1.438, allocations: 82.03 kB / 1.111 GB, free: 5.484 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.204e-06/1.438, allocations: 0 / 1.111 GB, free: 5.484 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002424/1.438, allocations: 18.75 kB / 1.111 GB, free: 5.469 MB / 0.6355 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 () * 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.0006623/1.439, allocations: 0.7248 MB / 1.111 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001404/1.439, allocations: 43.17 kB / 1.111 GB, free: 4.699 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.439, allocations: 4.25 kB / 1.111 GB, free: 4.695 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.305e-05/1.439, allocations: 26.88 kB / 1.111 GB, free: 4.676 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001906/1.44, allocations: 4 kB / 1.111 GB, free: 4.672 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008279/1.44, allocations: 309.4 kB / 1.112 GB, free: 4.344 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/1.441, allocations: 0.6809 MB / 1.112 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 6.916e-05/1.441, allocations: 11.98 kB / 1.112 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.838e-05/1.441, allocations: 18.75 kB / 1.112 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of SimCode: time 6.91e-07/1.441, allocations: 3.938 kB / 1.112 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01449/1.455, allocations: 1.845 MB / 1.114 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002195/1.456, allocations: 152.5 kB / 1.114 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.586/3.041, allocations: 6.531 kB / 1.114 GB, free: 1.676 MB / 0.6355 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)