Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.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.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",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.0007153/0.0007153, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004187/0.004187, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.26/1.26, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001663/0.001663, allocations: 262.5 kB / 291.7 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8889/0.8889, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003749/0.0003749, allocations: 19.94 kB / 0.5988 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.133, allocations: 88.55 MB / 0.6852 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.003616/0.1367, allocations: 3.672 MB / 0.6888 GB, free: 11.28 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001645/0.1368, allocations: 156.1 kB / 0.689 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.26e-05/0.1369, allocations: 0 / 0.689 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.428e-05/0.1369, allocations: 0.625 kB / 0.689 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.39e-05/0.137, allocations: 16.47 kB / 0.689 GB, free: 11.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002463/0.1373, allocations: 76.88 kB / 0.689 GB, free: 11.04 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.183e-05/0.1374, allocations: 63.81 kB / 0.6891 GB, free: 10.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.363e-05/0.1374, allocations: 0 / 0.6891 GB, free: 10.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.177e-05/0.1374, allocations: 16.42 kB / 0.6891 GB, free: 10.96 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.861e-05/0.1375, allocations: 12.75 kB / 0.6891 GB, free: 10.95 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.1375, allocations: 7.922 kB / 0.6891 GB, free: 10.94 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001778/0.1377, allocations: 80.56 kB / 0.6892 GB, free: 10.86 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.585e-05/0.1378, allocations: 7.938 kB / 0.6892 GB, free: 10.86 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.1378, allocations: 35.41 kB / 0.6893 GB, free: 10.82 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.1379, allocations: 48.11 kB / 0.6893 GB, free: 10.77 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.155e-06/0.1379, allocations: 0 / 0.6893 GB, free: 10.77 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1379, allocations: 0 / 0.6893 GB, free: 10.77 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.266e-06/0.1379, allocations: 0 / 0.6893 GB, free: 10.77 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002716/0.1382, allocations: 324.8 kB / 0.6896 GB, free: 10.41 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.1382, allocations: 12.03 kB / 0.6896 GB, free: 10.39 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.312e-05/0.1383, allocations: 36.72 kB / 0.6897 GB, free: 10.35 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.518e-05/0.1383, allocations: 4.844 kB / 0.6897 GB, free: 10.35 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.704e-05/0.1384, allocations: 168.3 kB / 0.6898 GB, free: 10.14 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.546e-05/0.1385, allocations: 26.27 kB / 0.6899 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.857e-06/0.1385, allocations: 10.61 kB / 0.6899 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.1386, allocations: 49.67 kB / 0.6899 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.41e-06/0.1386, allocations: 0 / 0.6899 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.1386, allocations: 3.984 kB / 0.6899 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.1386, allocations: 0 / 0.6899 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.095e-05/0.1387, allocations: 12 kB / 0.6899 GB, free: 10.04 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003612/0.139, allocations: 339.4 kB / 0.6903 GB, free: 9.637 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.075e-05/0.1391, allocations: 23.7 kB / 0.6903 GB, free: 9.605 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.34e-05/0.1391, allocations: 8.844 kB / 0.6903 GB, free: 9.594 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.309e-05/0.1392, allocations: 82.11 kB / 0.6904 GB, free: 9.496 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.1392, allocations: 38.56 kB / 0.6904 GB, free: 9.449 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1392, allocations: 0 / 0.6904 GB, free: 9.449 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001127/0.1393, allocations: 37.62 kB / 0.6904 GB, free: 9.406 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.562e-05/0.1394, allocations: 55.41 kB / 0.6905 GB, free: 9.34 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.334e-05/0.1394, allocations: 97.86 kB / 0.6906 GB, free: 9.234 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.1394, allocations: 25.7 kB / 0.6906 GB, free: 9.203 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.681e-05/0.1395, allocations: 92.03 kB / 0.6907 GB, free: 9.109 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.412e-06/0.1395, allocations: 3.906 kB / 0.6907 GB, free: 9.105 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.328e-05/0.1395, allocations: 21.78 kB / 0.6907 GB, free: 9.078 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.96e-05/0.1396, allocations: 314.8 kB / 0.691 GB, free: 8.762 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.426e-05/0.1396, allocations: 8 kB / 0.691 GB, free: 8.754 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.918e-05/0.1397, allocations: 13.7 kB / 0.691 GB, free: 8.734 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.979e-05/0.1397, allocations: 25.66 kB / 0.6911 GB, free: 8.703 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.1397, allocations: 0 / 0.6911 GB, free: 8.703 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.322e-05/0.1398, allocations: 45.69 kB / 0.6911 GB, free: 8.652 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.327e-06/0.1398, allocations: 8 kB / 0.6911 GB, free: 8.645 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1398, allocations: 0 / 0.6911 GB, free: 8.645 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.666e-06/0.1398, allocations: 0 / 0.6911 GB, free: 8.645 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.194e-05/0.1399, allocations: 11.88 kB / 0.6911 GB, free: 8.633 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.1399, allocations: 4 kB / 0.6911 GB, free: 8.629 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.781e-05/0.1399, allocations: 4 kB / 0.6911 GB, free: 8.625 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.1399, allocations: 0 / 0.6911 GB, free: 8.625 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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.249e-05/0.14, allocations: 123.1 kB / 0.6913 GB, free: 8.496 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.14, allocations: 4 kB / 0.6913 GB, free: 8.492 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.205e-05/0.1401, allocations: 117 kB / 0.6914 GB, free: 8.371 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-05/0.1401, allocations: 180.2 kB / 0.6915 GB, free: 8.188 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-05/0.1402, allocations: 180.2 kB / 0.6917 GB, free: 8.004 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.991e-05/0.1402, allocations: 184.2 kB / 0.6919 GB, free: 7.816 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001798/0.1404, allocations: 409.2 kB / 0.6923 GB, free: 7.359 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.684e-05/0.1405, allocations: 105 kB / 0.6924 GB, free: 7.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.888e-05/0.1405, allocations: 104.9 kB / 0.6925 GB, free: 7.141 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.101e-05/0.1405, allocations: 176.3 kB / 0.6926 GB, free: 6.961 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.705e-05/0.1406, allocations: 180.2 kB / 0.6928 GB, free: 6.777 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.698e-05/0.1406, allocations: 188.2 kB / 0.693 GB, free: 6.586 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.351e-05/0.1407, allocations: 180.3 kB / 0.6932 GB, free: 6.402 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001004/0.1408, allocations: 307.6 kB / 0.6935 GB, free: 6.078 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.946e-05/0.1409, allocations: 190 kB / 0.6936 GB, free: 5.867 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.007e-05/0.1409, allocations: 184.3 kB / 0.6938 GB, free: 5.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/0.1411, allocations: 109.2 kB / 0.6939 GB, free: 5.566 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.093e-05/0.1411, allocations: 184.2 kB / 0.6941 GB, free: 5.379 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.732e-05/0.1412, allocations: 105 kB / 0.6942 GB, free: 5.27 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.885e-05/0.1412, allocations: 83.28 kB / 0.6943 GB, free: 5.188 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1412, allocations: 0 / 0.6943 GB, free: 5.188 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002226/0.1414, allocations: 23.88 kB / 0.6943 GB, free: 5.164 MB / 494.1 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0003765/0.1418, allocations: 0.836 MB / 0.6951 GB, free: 4.301 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 4.618e-05/0.1419, allocations: 4 kB / 0.6951 GB, free: 4.297 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1419, allocations: 0 / 0.6951 GB, free: 4.297 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.896e-06/0.1419, allocations: 12.06 kB / 0.6951 GB, free: 4.285 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.1423, allocations: 0.5224 MB / 0.6956 GB, free: 3.758 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007921/0.1431, allocations: 1.331 MB / 0.6969 GB, free: 2.336 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001727/0.1432, allocations: 0.6732 MB / 0.6976 GB, free: 1.637 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.828e-05/0.1433, allocations: 11.97 kB / 0.6976 GB, free: 1.625 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.671e-05/0.1433, allocations: 7.438 kB / 0.6976 GB, free: 1.617 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1433, allocations: 0 / 0.6976 GB, free: 1.617 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01804/0.1614, allocations: 1.321 MB / 0.6989 GB, free: 480 kB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001978/0.1616, allocations: 223.6 kB / 0.6991 GB, free: 216 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.59/1.752, allocations: 0 / 0.6991 GB, free: 216 kB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)