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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000921/0.000921, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007445/0.007445, allocations: 169.6 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001653/0.001653, allocations: 275 kB / 291.7 MB, free: 1.863 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8833/0.8833, allocations: 169.5 MB / 0.5004 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004392/0.0004393, allocations: 18.7 kB / 0.5988 GB, free: 28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1443, allocations: 88.54 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterDerivativeCheck): time 0.001098/0.1454, allocations: 0.9843 MB / 0.6862 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003064/0.1485, allocations: 3.203 MB / 0.6893 GB, free: 10.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.591e-05/0.1485, allocations: 0 / 0.6893 GB, free: 10.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.583e-05/0.1486, allocations: 0 / 0.6893 GB, free: 10.75 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.702e-05/0.1486, allocations: 1.188 kB / 0.6893 GB, free: 10.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.149, allocations: 92.17 kB / 0.6894 GB, free: 10.66 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.394e-05/0.149, allocations: 32.61 kB / 0.6894 GB, free: 10.63 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.484e-05/0.1491, allocations: 12.5 kB / 0.6894 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.075e-05/0.1491, allocations: 15.94 kB / 0.6895 GB, free: 10.6 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.211e-05/0.1492, allocations: 18.42 kB / 0.6895 GB, free: 10.59 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.004e-05/0.1492, allocations: 0 / 0.6895 GB, free: 10.59 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001916/0.1494, allocations: 79.8 kB / 0.6895 GB, free: 10.51 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.526e-05/0.1494, allocations: 11.92 kB / 0.6896 GB, free: 10.5 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.58e-05/0.1495, allocations: 37.69 kB / 0.6896 GB, free: 10.45 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.1496, allocations: 80 kB / 0.6897 GB, free: 10.38 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1496, allocations: 0.75 kB / 0.6897 GB, free: 10.38 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1496, allocations: 3.938 kB / 0.6897 GB, free: 10.37 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.1497, allocations: 0.6562 kB / 0.6897 GB, free: 10.37 MB / 494.1 MB 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.0003054/0.15, allocations: 337.3 kB / 0.69 GB, free: 9.996 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.15, allocations: 8.031 kB / 0.69 GB, free: 9.988 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.243e-05/0.15, allocations: 34.75 kB / 0.69 GB, free: 9.945 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.764e-05/0.1501, allocations: 8.844 kB / 0.69 GB, free: 9.938 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.619e-05/0.1502, allocations: 171.2 kB / 0.6902 GB, free: 9.734 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.205e-06/0.1502, allocations: 384 / 0.6902 GB, free: 9.734 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.1503, allocations: 8.375 kB / 0.6902 GB, free: 9.727 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.1504, allocations: 53.61 kB / 0.6903 GB, free: 9.668 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.1504, allocations: 3.938 kB / 0.6903 GB, free: 9.664 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.1504, allocations: 0 / 0.6903 GB, free: 9.664 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.1504, allocations: 4.781 kB / 0.6903 GB, free: 9.66 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.8e-05/0.1505, allocations: 15.98 kB / 0.6903 GB, free: 9.645 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001449/0.1506, allocations: 167.4 kB / 0.6905 GB, free: 9.434 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.029e-05/0.1507, allocations: 50.56 kB / 0.6905 GB, free: 9.375 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.641e-05/0.1508, allocations: 9.734 kB / 0.6905 GB, free: 9.363 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006115/0.1514, allocations: 0.6115 MB / 0.6911 GB, free: 8.645 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.928e-05/0.1514, allocations: 31.62 kB / 0.6911 GB, free: 8.605 MB / 494.1 MB Notification: Performance of pre-optimization done (n=5): time 1.853e-06/0.1514, allocations: 1 kB / 0.6911 GB, free: 8.605 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005067/0.1519, allocations: 298.2 kB / 0.6914 GB, free: 8.262 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.167e-05/0.152, allocations: 59.41 kB / 0.6915 GB, free: 8.191 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.709e-05/0.152, allocations: 105.8 kB / 0.6916 GB, free: 8.078 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1521, allocations: 29.7 kB / 0.6916 GB, free: 8.043 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.546e-05/0.1521, allocations: 84.05 kB / 0.6917 GB, free: 7.957 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.795e-05/0.1521, allocations: 27.56 kB / 0.6917 GB, free: 7.93 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/0.1521, allocations: 21.7 kB / 0.6917 GB, free: 7.902 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.907e-05/0.1522, allocations: 310.8 kB / 0.692 GB, free: 7.59 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.762e-05/0.1523, allocations: 19.98 kB / 0.6921 GB, free: 7.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.028e-05/0.1523, allocations: 64.95 kB / 0.6921 GB, free: 7.488 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.541e-05/0.1524, allocations: 69.09 kB / 0.6922 GB, free: 7.402 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1524, allocations: 4 kB / 0.6922 GB, free: 7.398 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001209/0.1525, allocations: 89.55 kB / 0.6923 GB, free: 7.305 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.1526, allocations: 4 kB / 0.6923 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1526, allocations: 4 kB / 0.6923 GB, free: 7.297 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.1526, allocations: 0 / 0.6923 GB, free: 7.297 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.094e-05/0.1527, allocations: 20.42 kB / 0.6923 GB, free: 7.277 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.1527, allocations: 7.938 kB / 0.6923 GB, free: 7.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.677e-05/0.1527, allocations: 12.06 kB / 0.6923 GB, free: 7.258 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.1527, allocations: 4 kB / 0.6923 GB, free: 7.254 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.247e-05/0.1528, allocations: 114.5 kB / 0.6924 GB, free: 7.133 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.739e-05/0.1528, allocations: 15.84 kB / 0.6924 GB, free: 7.117 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.581e-05/0.1529, allocations: 11.95 kB / 0.6925 GB, free: 7.109 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1529, allocations: 0 / 0.6925 GB, free: 7.109 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.1529, allocations: 0 / 0.6925 GB, free: 7.109 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1529, allocations: 3.938 kB / 0.6925 GB, free: 7.105 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002114/0.1531, allocations: 173.7 kB / 0.6926 GB, free: 6.887 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1531, allocations: 4 kB / 0.6926 GB, free: 6.883 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.986e-05/0.1532, allocations: 20 kB / 0.6926 GB, free: 6.863 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.1532, allocations: 0 / 0.6926 GB, free: 6.863 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-06/0.1532, allocations: 0 / 0.6926 GB, free: 6.863 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1532, allocations: 3.938 kB / 0.6927 GB, free: 6.859 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1532, allocations: 0 / 0.6927 GB, free: 6.859 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001531/0.1534, allocations: 175.5 kB / 0.6928 GB, free: 6.672 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.285e-05/0.1534, allocations: 85.05 kB / 0.6929 GB, free: 6.57 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.1535, allocations: 8 kB / 0.6929 GB, free: 6.562 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.954e-05/0.1536, allocations: 4 kB / 0.6929 GB, free: 6.559 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.59e-05/0.1536, allocations: 11.92 kB / 0.6929 GB, free: 6.547 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.1536, allocations: 0 / 0.6929 GB, free: 6.547 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.919e-05/0.1536, allocations: 79.66 kB / 0.693 GB, free: 6.469 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1536, allocations: 0 / 0.693 GB, free: 6.469 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002296/0.1539, allocations: 16 kB / 0.693 GB, free: 6.453 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003558/0.1542, allocations: 0.7126 MB / 0.6937 GB, free: 5.711 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.058e-05/0.1543, allocations: 39.95 kB / 0.6937 GB, free: 5.672 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1543, allocations: 0 / 0.6937 GB, free: 5.672 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.49e-05/0.1544, allocations: 23.92 kB / 0.6938 GB, free: 5.648 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.1546, allocations: 9.969 kB / 0.6938 GB, free: 5.641 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.1559, allocations: 1.59 MB / 0.6953 GB, free: 3.938 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001979/0.1561, allocations: 0.6809 MB / 0.696 GB, free: 3.23 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.228e-05/0.1561, allocations: 11.98 kB / 0.696 GB, free: 3.219 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.345e-05/0.1562, allocations: 15.44 kB / 0.696 GB, free: 3.203 MB / 494.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1562, allocations: 0 / 0.696 GB, free: 3.203 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01052/0.1667, allocations: 1.46 MB / 0.6975 GB, free: 1.875 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/0.1669, allocations: 198.2 kB / 0.6976 GB, free: 1.625 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.485/1.652, allocations: 0 / 0.6976 GB, free: 1.625 MB / 494.1 MB (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/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)