Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="Buildings_9_Buildings_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.00091/0.00091, allocations: 102.7 kB / 15.06 MB, free: 1.098 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.0009203/0.0009203, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.4/2.4, allocations: 390.3 MB / 0.6653 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003535/0.0003535, allocations: 8 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7898/0.7902, allocations: 142.3 MB / 0.9536 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.004334/0.7945, allocations: 3.071 MB / 0.9566 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002641/0.7972, allocations: 2.182 MB / 0.9587 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.7974, allocations: 1.344 kB / 0.9587 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002946/0.7977, allocations: 36.77 kB / 0.9588 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002835/0.798, allocations: 89.8 kB / 0.9588 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001256/0.7992, allocations: 442.9 kB / 0.9593 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002464/0.7995, allocations: 174.3 kB / 0.9594 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.199e-05/0.7995, allocations: 9.219 kB / 0.9594 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001978/0.7997, allocations: 98.14 kB / 0.9595 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.7999, allocations: 80.25 kB / 0.9596 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.7999, allocations: 15.11 kB / 0.9596 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007849/0.8007, allocations: 392.5 kB / 0.96 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.345e-05/0.8008, allocations: 34.89 kB / 0.96 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.475e-05/0.8008, allocations: 54.27 kB / 0.9601 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003857/0.8012, allocations: 255.3 kB / 0.9603 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.8012, allocations: 0 / 0.9603 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.475e-06/0.8012, allocations: 1 kB / 0.9603 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.8012, allocations: 0 / 0.9603 GB, free: 2.898 MB / 0.7169 GB 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.0006646/0.8019, allocations: 484.5 kB / 0.9608 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.802, allocations: 9.344 kB / 0.9608 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.965e-05/0.802, allocations: 52.52 kB / 0.9608 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001909/0.8039, allocations: 183 kB / 0.961 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.8042, allocations: 212.5 kB / 0.9612 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.8042, allocations: 13.98 kB / 0.9612 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.371e-05/0.8043, allocations: 18.52 kB / 0.9613 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006072/0.8049, allocations: 303.5 kB / 0.9615 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.8049, allocations: 4.984 kB / 0.9615 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.628e-05/0.805, allocations: 7.281 kB / 0.9616 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.435e-05/0.805, allocations: 4.812 kB / 0.9616 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006903/0.8057, allocations: 262.3 kB / 0.9618 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001442/0.8071, allocations: 1.396 MB / 0.9632 GB, free: 276 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006659/0.8078, allocations: 196.2 kB / 0.9634 GB, free: 172 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.8079, allocations: 6.297 kB / 0.9634 GB, free: 168 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.8079, allocations: 32.97 kB / 0.9634 GB, free: 128 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.763e-06/0.8079, allocations: 0 / 0.9634 GB, free: 128 kB / 0.7169 GB Notification: Performance of matching and sorting (n=18): time 0.0007888/0.8087, allocations: 244.2 kB / 0.9636 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.8087, allocations: 57.88 kB / 0.9637 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.8089, allocations: 157.4 kB / 0.9638 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.809, allocations: 31.02 kB / 0.9639 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.96e-05/0.8091, allocations: 122.6 kB / 0.964 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.936e-05/0.8091, allocations: 63.53 kB / 0.964 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.52e-05/0.8092, allocations: 4 kB / 0.964 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001837/0.8094, allocations: 330.6 kB / 0.9644 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/0.8096, allocations: 70.05 kB / 0.9644 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.8099, allocations: 134.8 kB / 0.9646 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.8101, allocations: 81.41 kB / 0.9646 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.8101, allocations: 1.281 kB / 0.9646 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006131/0.8108, allocations: 250.4 kB / 0.9649 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.8108, allocations: 6.156 kB / 0.9649 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.8108, allocations: 2.719 kB / 0.9649 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.8108, allocations: 4.344 kB / 0.9649 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003765/0.8112, allocations: 78.39 kB / 0.965 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.8112, allocations: 4.5 kB / 0.965 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.8115, allocations: 35.83 kB / 0.965 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.8116, allocations: 16.92 kB / 0.965 GB, free: 14.87 MB / 0.7325 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000133/0.8117, allocations: 127 kB / 0.9651 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.767e-05/0.8117, allocations: 20.02 kB / 0.9652 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006242/0.8124, allocations: 226.1 kB / 0.9654 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.8124, allocations: 1.875 kB / 0.9654 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.8124, allocations: 0 / 0.9654 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.8124, allocations: 1.188 kB / 0.9654 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003252/0.8127, allocations: 248.6 kB / 0.9656 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.8127, allocations: 0 / 0.9656 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000319/0.8131, allocations: 53.94 kB / 0.9657 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.8131, allocations: 9.328 kB / 0.9657 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.8131, allocations: 5.141 kB / 0.9657 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.8131, allocations: 0.9688 kB / 0.9657 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.8131, allocations: 1.438 kB / 0.9657 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000573/0.8137, allocations: 288.6 kB / 0.966 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.8138, allocations: 117.8 kB / 0.9661 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.71e-05/0.8139, allocations: 5.156 kB / 0.9661 GB, free: 13.97 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002787/0.8142, allocations: 19.34 kB / 0.9661 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.8142, allocations: 17.56 kB / 0.9661 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.8142, allocations: 10.98 kB / 0.9661 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001183/0.8144, allocations: 120 kB / 0.9662 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.3e-07/0.8144, allocations: 0 / 0.9662 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003964/0.8148, allocations: 63.5 kB / 0.9663 GB, free: 13.84 MB / 0.7325 GB 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 (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.001013/0.8158, allocations: 0.8676 MB / 0.9671 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005367/0.8163, allocations: 193 kB / 0.9673 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.8164, allocations: 0 / 0.9673 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.8166, allocations: 84.42 kB / 0.9674 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004449/0.817, allocations: 54.05 kB / 0.9675 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002864/0.8199, allocations: 2.605 MB / 0.97 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.8203, allocations: 0.7244 MB / 0.9707 GB, free: 9.879 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003697/0.8207, allocations: 52.52 kB / 0.9708 GB, free: 9.844 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.8208, allocations: 52.75 kB / 0.9708 GB, free: 9.805 MB / 0.7325 GB Notification: Performance of SimCode: time 2e-07/0.8208, allocations: 3.938 kB / 0.9708 GB, free: 9.801 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01705/0.8379, allocations: 4.688 MB / 0.9754 GB, free: 7.57 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001853/0.8381, allocations: 215.4 kB / 0.9756 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.718, allocations: 2.5 kB / 0.9756 GB, free: 7.328 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.fmu > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.mat does not exist to compare? outputFormat=mat