Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.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.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",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.001216/0.001216, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 197.4 kB / 16.53 MB, free: 6.699 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.253/1.253, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002063/0.002063, allocations: 284.8 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8984/0.8984, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 102.5 kB / 0.5953 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1343, allocations: 86.97 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.004724/0.139, allocations: 4.045 MB / 0.6842 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002414/0.1415, allocations: 2.422 MB / 0.6866 GB, free: 10.11 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.715e-05/0.1415, allocations: 4 kB / 0.6866 GB, free: 10.11 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002333/0.1418, allocations: 55.66 kB / 0.6867 GB, free: 10.05 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002409/0.142, allocations: 95.34 kB / 0.6867 GB, free: 9.961 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.1431, allocations: 0.5199 MB / 0.6873 GB, free: 9.441 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002704/0.1434, allocations: 259.9 kB / 0.6875 GB, free: 9.188 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.321e-05/0.1434, allocations: 17.53 kB / 0.6875 GB, free: 9.172 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.1436, allocations: 111.6 kB / 0.6876 GB, free: 9.062 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.1438, allocations: 95.59 kB / 0.6877 GB, free: 8.969 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.196e-05/0.1438, allocations: 8 kB / 0.6877 GB, free: 8.961 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000723/0.1445, allocations: 459.2 kB / 0.6882 GB, free: 8.512 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.298e-05/0.1446, allocations: 35.89 kB / 0.6882 GB, free: 8.477 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.647e-05/0.1447, allocations: 87.64 kB / 0.6883 GB, free: 8.391 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005518/0.1452, allocations: 403.3 kB / 0.6887 GB, free: 7.996 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1453, allocations: 3.984 kB / 0.6887 GB, free: 7.992 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1453, allocations: 0 / 0.6887 GB, free: 7.992 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.1453, allocations: 0 / 0.6887 GB, free: 7.992 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006679/0.1459, allocations: 0.5147 MB / 0.6892 GB, free: 7.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.146, allocations: 11.97 kB / 0.6892 GB, free: 7.418 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.15e-05/0.146, allocations: 50.73 kB / 0.6892 GB, free: 7.359 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00188/0.1479, allocations: 184.5 kB / 0.6894 GB, free: 7.18 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.1481, allocations: 204.2 kB / 0.6896 GB, free: 6.941 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/0.1482, allocations: 8.703 kB / 0.6896 GB, free: 6.934 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.3e-05/0.1482, allocations: 16.38 kB / 0.6896 GB, free: 6.918 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006073/0.1488, allocations: 312.8 kB / 0.6899 GB, free: 6.578 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.1488, allocations: 0 / 0.6899 GB, free: 6.578 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/0.1489, allocations: 12 kB / 0.6899 GB, free: 6.566 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.1489, allocations: 4 kB / 0.6899 GB, free: 6.562 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006789/0.1496, allocations: 259.6 kB / 0.6902 GB, free: 6.309 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.1511, allocations: 1.396 MB / 0.6916 GB, free: 4.797 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006402/0.1517, allocations: 201.6 kB / 0.6917 GB, free: 4.594 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002187/0.152, allocations: 76.81 kB / 0.6918 GB, free: 4.516 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.152, allocations: 7.984 kB / 0.6918 GB, free: 4.508 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.152, allocations: 42.5 kB / 0.6919 GB, free: 4.457 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.312e-06/0.152, allocations: 0 / 0.6919 GB, free: 4.457 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007739/0.1528, allocations: 239.4 kB / 0.6921 GB, free: 4.219 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.1529, allocations: 55.41 kB / 0.6921 GB, free: 4.152 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.153, allocations: 167.9 kB / 0.6923 GB, free: 3.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.1531, allocations: 33.7 kB / 0.6923 GB, free: 3.941 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.1532, allocations: 124 kB / 0.6925 GB, free: 3.816 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.105e-05/0.1532, allocations: 63.09 kB / 0.6925 GB, free: 3.754 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/0.1534, allocations: 49.94 kB / 0.6926 GB, free: 3.695 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1535, allocations: 330.8 kB / 0.6929 GB, free: 3.363 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002178/0.1538, allocations: 60.42 kB / 0.6929 GB, free: 3.305 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002536/0.154, allocations: 145.8 kB / 0.6931 GB, free: 3.133 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005255/0.1546, allocations: 215.8 kB / 0.6933 GB, free: 2.891 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1546, allocations: 0 / 0.6933 GB, free: 2.891 MB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005741/0.1552, allocations: 253 kB / 0.6935 GB, free: 2.637 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1552, allocations: 8 kB / 0.6935 GB, free: 2.629 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1552, allocations: 0 / 0.6935 GB, free: 2.629 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.1552, allocations: 4 kB / 0.6935 GB, free: 2.625 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000343/0.1556, allocations: 67.89 kB / 0.6936 GB, free: 2.559 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.1556, allocations: 4 kB / 0.6936 GB, free: 2.555 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002321/0.1558, allocations: 35.98 kB / 0.6936 GB, free: 2.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.1558, allocations: 15.94 kB / 0.6937 GB, free: 2.504 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (28): * Single equations (assignments): 28 * 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 0.0001069/0.156, allocations: 130.4 kB / 0.6938 GB, free: 2.367 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.344e-05/0.156, allocations: 15.91 kB / 0.6938 GB, free: 2.352 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006193/0.1566, allocations: 226.6 kB / 0.694 GB, free: 2.121 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.1567, allocations: 7.938 kB / 0.694 GB, free: 2.113 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1567, allocations: 0 / 0.694 GB, free: 2.113 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.1567, allocations: 0 / 0.694 GB, free: 2.113 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002849/0.157, allocations: 253.3 kB / 0.6943 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.157, allocations: 0 / 0.6943 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002975/0.1573, allocations: 47.91 kB / 0.6943 GB, free: 1.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.1573, allocations: 4 kB / 0.6943 GB, free: 1.766 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.1573, allocations: 4 kB / 0.6943 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1573, allocations: 0 / 0.6943 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1573, allocations: 3.984 kB / 0.6943 GB, free: 1.758 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005479/0.1579, allocations: 300.4 kB / 0.6946 GB, free: 1.449 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.158, allocations: 108.8 kB / 0.6947 GB, free: 1.324 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.401e-05/0.158, allocations: 0 / 0.6947 GB, free: 1.324 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.1583, allocations: 19.98 kB / 0.6947 GB, free: 1.305 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.447e-05/0.1583, allocations: 7.984 kB / 0.6947 GB, free: 1.297 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.1584, allocations: 15.98 kB / 0.6947 GB, free: 1.281 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.383e-05/0.1585, allocations: 121.1 kB / 0.6949 GB, free: 1.164 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1585, allocations: 0 / 0.6949 GB, free: 1.164 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003424/0.1588, allocations: 64.12 kB / 0.6949 GB, free: 1.102 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 (20): * Single equations (assignments): 20 * 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.0008756/0.1597, allocations: 0.86 MB / 0.6958 GB, free: 224 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005392/0.1602, allocations: 195.7 kB / 0.696 GB, free: 28 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.1603, allocations: 4 kB / 0.696 GB, free: 24 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000242/0.1605, allocations: 82.12 kB / 0.696 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005263/0.161, allocations: 66.75 kB / 0.6961 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002982/0.164, allocations: 2.153 MB / 0.6982 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.1643, allocations: 0.7134 MB / 0.6989 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003396/0.1647, allocations: 49.92 kB / 0.6989 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.1648, allocations: 47.42 kB / 0.699 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of SimCode: time 1.673e-06/0.1648, allocations: 4 kB / 0.699 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02206/0.1869, allocations: 5.152 MB / 0.704 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.939/7.126, allocations: 14.06 kB / 0.704 GB, free: 7.789 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1)