Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_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.001431/0.001431, 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.001617/0.001617, allocations: 196.7 kB / 16.53 MB, free: 6.664 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.27/1.27, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.087/2.087, allocations: 390.3 MB / 0.6647 GB, free: 428 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.89 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5674/0.5686, allocations: 140.4 MB / 0.9497 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004114/0.5728, allocations: 4.015 MB / 0.9536 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001455/0.5729, allocations: 153.4 kB / 0.9538 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.329e-05/0.573, allocations: 0 / 0.9538 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.052e-05/0.5731, allocations: 5.031 kB / 0.9538 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.351e-05/0.5731, allocations: 14.34 kB / 0.9538 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002925/0.5734, allocations: 79.41 kB / 0.9539 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.569e-05/0.5735, allocations: 37.62 kB / 0.9539 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.947e-05/0.5736, allocations: 5.094 kB / 0.9539 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.012e-05/0.5736, allocations: 17.02 kB / 0.9539 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.106e-05/0.5737, allocations: 14.64 kB / 0.9539 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.5737, allocations: 1.688 kB / 0.9539 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001644/0.5739, allocations: 61.56 kB / 0.954 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.022e-05/0.5739, allocations: 9.422 kB / 0.954 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.006e-05/0.5739, allocations: 13.23 kB / 0.954 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.5741, allocations: 35.94 kB / 0.9541 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.5741, allocations: 5.344 kB / 0.9541 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.153e-06/0.5741, allocations: 0 / 0.9541 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.256e-06/0.5741, allocations: 0 / 0.9541 GB, free: 5.648 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002998/0.5744, allocations: 336.8 kB / 0.9544 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.5744, allocations: 8.906 kB / 0.9544 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.594e-05/0.5745, allocations: 36.31 kB / 0.9544 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.098e-05/0.5745, allocations: 6.281 kB / 0.9544 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.987e-05/0.5746, allocations: 164.4 kB / 0.9546 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.267e-05/0.5746, allocations: 28.05 kB / 0.9546 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.5747, allocations: 9.406 kB / 0.9546 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001076/0.5748, allocations: 42.48 kB / 0.9547 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.5748, allocations: 0 / 0.9547 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.5748, allocations: 5.141 kB / 0.9547 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/0.5748, allocations: 1.094 kB / 0.9547 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.248e-05/0.5749, allocations: 21.02 kB / 0.9547 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003316/0.5752, allocations: 342.3 kB / 0.955 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.964e-05/0.5753, allocations: 15.58 kB / 0.955 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.308e-05/0.5753, allocations: 5.703 kB / 0.955 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.281e-05/0.5753, allocations: 87.06 kB / 0.9551 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.372e-05/0.5754, allocations: 35.72 kB / 0.9552 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.5754, allocations: 0 / 0.9552 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.000124/0.5755, allocations: 39.52 kB / 0.9552 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.818e-05/0.5755, allocations: 52.47 kB / 0.9552 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.263e-05/0.5756, allocations: 103.4 kB / 0.9553 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.748e-06/0.5756, allocations: 26.67 kB / 0.9554 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.481e-05/0.5756, allocations: 85.05 kB / 0.9554 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.51e-06/0.5756, allocations: 1.031 kB / 0.9554 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.666e-05/0.5757, allocations: 20.95 kB / 0.9555 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.998e-05/0.5757, allocations: 319.9 kB / 0.9558 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.366e-05/0.5757, allocations: 3.031 kB / 0.9558 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.97e-05/0.5757, allocations: 17.38 kB / 0.9558 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.956e-05/0.5758, allocations: 27.67 kB / 0.9558 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.5758, allocations: 1.156 kB / 0.9558 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.121e-05/0.5759, allocations: 45.89 kB / 0.9559 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.5759, allocations: 18.86 kB / 0.9559 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.5759, allocations: 1.406 kB / 0.9559 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.5759, allocations: 0 / 0.9559 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.58e-05/0.576, allocations: 9.094 kB / 0.9559 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.576, allocations: 1.125 kB / 0.9559 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.874e-05/0.576, allocations: 8.938 kB / 0.9559 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.076e-06/0.576, allocations: 1.219 kB / 0.9559 GB, free: 3.609 MB / 0.7169 GB 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 4.509e-05/0.576, allocations: 116 kB / 0.956 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.5761, allocations: 1.156 kB / 0.956 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.494e-05/0.5762, allocations: 120.7 kB / 0.9561 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-05/0.5762, allocations: 185.5 kB / 0.9563 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.197e-05/0.5762, allocations: 176.3 kB / 0.9565 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.095e-05/0.5762, allocations: 185.3 kB / 0.9566 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.5764, allocations: 408.3 kB / 0.957 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.5764, allocations: 105.9 kB / 0.9571 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.21e-05/0.5764, allocations: 106 kB / 0.9572 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.825e-05/0.5764, allocations: 181.2 kB / 0.9574 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.998e-05/0.5764, allocations: 185.4 kB / 0.9576 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.766e-05/0.5765, allocations: 181.3 kB / 0.9578 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.061e-05/0.5765, allocations: 181.6 kB / 0.9579 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.038e-05/0.5766, allocations: 308 kB / 0.9582 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.452e-05/0.5766, allocations: 183.2 kB / 0.9584 GB, free: 0.8711 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.396e-05/0.5766, allocations: 181.4 kB / 0.9586 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.5768, allocations: 107.5 kB / 0.9587 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.308e-05/0.5768, allocations: 181.5 kB / 0.9589 GB, free: 404 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.5768, allocations: 106.3 kB / 0.959 GB, free: 292 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.584e-05/0.5768, allocations: 87.92 kB / 0.959 GB, free: 208 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5768, allocations: 0 / 0.959 GB, free: 208 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002323/0.5771, allocations: 20.41 kB / 0.9591 GB, free: 200 kB / 0.7169 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 (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.0004265/0.5775, allocations: 0.8298 MB / 0.9599 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 5.803e-05/0.5776, allocations: 9.766 kB / 0.9599 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.5776, allocations: 5.281 kB / 0.9599 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.262e-06/0.5776, allocations: 4.125 kB / 0.9599 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.5779, allocations: 459.4 kB / 0.9603 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000927/0.5789, allocations: 1.308 MB / 0.9616 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.5791, allocations: 0.6796 MB / 0.9623 GB, free: 12.87 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.889e-05/0.5792, allocations: 11.5 kB / 0.9623 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.223e-05/0.5792, allocations: 10.22 kB / 0.9623 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of SimCode: time 2.11e-07/0.5792, allocations: 0 / 0.9623 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9744/1.554, allocations: 1.487 MB / 0.9637 GB, free: 12.01 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/14.45, allocations: 3.672 kB / 0.9637 GB, free: 12.01 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches