Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_AirTemperatureEnthalpyInversion",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.006338/0.006338, allocations: 98.94 kB / 15.73 MB, free: 6.035 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.001487/0.001487, allocations: 195.7 kB / 16.67 MB, free: 5.961 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.316/1.316, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.657/2.657, allocations: 469.4 MB / 0.7422 GB, free: 7.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 59.91 kB / 1.064 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2532, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.6641/0.9173, allocations: 148.3 MB / 1.365 GB, free: 0.9219 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.000141/0.9175, allocations: 51.47 kB / 1.365 GB, free: 0.8945 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.835e-05/0.9175, allocations: 0 / 1.365 GB, free: 0.8945 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.9177, allocations: 9.859 kB / 1.365 GB, free: 0.8867 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.07e-05/0.9178, allocations: 15.27 kB / 1.365 GB, free: 0.8789 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007591/0.9185, allocations: 220.1 kB / 1.365 GB, free: 0.7734 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.597e-05/0.9186, allocations: 33.75 kB / 1.365 GB, free: 0.7617 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.596e-05/0.9187, allocations: 5.688 kB / 1.365 GB, free: 0.7578 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.501e-05/0.9187, allocations: 16.02 kB / 1.365 GB, free: 0.7539 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.366e-05/0.9188, allocations: 12.62 kB / 1.365 GB, free: 0.75 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.9188, allocations: 1.219 kB / 1.365 GB, free: 0.75 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004372/0.9192, allocations: 198.3 kB / 1.365 GB, free: 0.668 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.277e-05/0.9193, allocations: 15.38 kB / 1.365 GB, free: 0.6602 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.787e-05/0.9193, allocations: 9.828 kB / 1.365 GB, free: 0.6562 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.9196, allocations: 113.3 kB / 1.365 GB, free: 0.6289 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.9196, allocations: 0 / 1.365 GB, free: 0.6289 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9196, allocations: 0 / 1.365 GB, free: 0.6289 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.127e-06/0.9196, allocations: 2.047 kB / 1.365 GB, free: 0.6289 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003674/0.92, allocations: 339.4 kB / 1.366 GB, free: 276 kB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.92, allocations: 10.28 kB / 1.366 GB, free: 276 kB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.068e-05/0.9201, allocations: 36 kB / 1.366 GB, free: 232 kB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000307/0.9204, allocations: 27.59 kB / 1.366 GB, free: 228 kB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.9205, allocations: 166.8 kB / 1.366 GB, free: 24 kB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.688e-05/0.9206, allocations: 32.48 kB / 1.366 GB, free: 15.99 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.9206, allocations: 5.5 kB / 1.366 GB, free: 15.98 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001199/0.9207, allocations: 44.62 kB / 1.366 GB, free: 15.95 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.9207, allocations: 3.984 kB / 1.366 GB, free: 15.95 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.9208, allocations: 5.5 kB / 1.366 GB, free: 15.95 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.9208, allocations: 2.344 kB / 1.366 GB, free: 15.95 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.538e-05/0.9208, allocations: 28.75 kB / 1.366 GB, free: 15.93 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003283/0.9212, allocations: 263.7 kB / 1.366 GB, free: 15.65 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 4.797e-05/0.9212, allocations: 21.92 kB / 1.366 GB, free: 15.63 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.335e-05/0.9213, allocations: 6.297 kB / 1.366 GB, free: 15.62 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001461/0.9214, allocations: 103.4 kB / 1.366 GB, free: 15.52 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.9214, allocations: 31.88 kB / 1.366 GB, free: 15.48 MB / 1.076 GB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.9215, allocations: 1.188 kB / 1.366 GB, free: 15.48 MB / 1.076 GB Notification: Performance of matching and sorting (n=2): time 0.0002268/0.9217, allocations: 50.89 kB / 1.366 GB, free: 15.44 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/0.9217, allocations: 53.48 kB / 1.366 GB, free: 15.38 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.492e-05/0.9218, allocations: 105.2 kB / 1.366 GB, free: 15.27 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.9218, allocations: 27.91 kB / 1.367 GB, free: 15.24 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.051e-05/0.9219, allocations: 90.3 kB / 1.367 GB, free: 15.15 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 7.474e-06/0.9219, allocations: 5.078 kB / 1.367 GB, free: 15.14 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-05/0.9219, allocations: 18.25 kB / 1.367 GB, free: 15.12 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 8.112e-05/0.922, allocations: 313.1 kB / 1.367 GB, free: 14.81 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.541e-05/0.922, allocations: 3.75 kB / 1.367 GB, free: 14.81 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.758e-05/0.9221, allocations: 24.77 kB / 1.367 GB, free: 14.79 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.271e-05/0.9221, allocations: 38.08 kB / 1.367 GB, free: 14.75 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.9221, allocations: 5.062 kB / 1.367 GB, free: 14.75 MB / 1.076 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.668e-05/0.9222, allocations: 56.14 kB / 1.367 GB, free: 14.7 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.9222, allocations: 5.734 kB / 1.367 GB, free: 14.7 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.9222, allocations: 1.156 kB / 1.367 GB, free: 14.7 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.9223, allocations: 1.156 kB / 1.367 GB, free: 14.7 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.636e-05/0.9223, allocations: 11.52 kB / 1.367 GB, free: 14.7 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.9223, allocations: 6.234 kB / 1.367 GB, free: 14.7 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.99e-05/0.9224, allocations: 1.125 kB / 1.367 GB, free: 14.7 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/0.9224, allocations: 1.953 kB / 1.367 GB, free: 14.7 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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 7.05e-05/0.9225, allocations: 117.7 kB / 1.367 GB, free: 14.57 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.73e-05/0.9225, allocations: 1.438 kB / 1.367 GB, free: 14.57 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.172e-05/0.9225, allocations: 5.422 kB / 1.367 GB, free: 14.57 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.9225, allocations: 0.8438 kB / 1.367 GB, free: 14.57 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.9225, allocations: 5.812 kB / 1.367 GB, free: 14.57 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.9225, allocations: 4 kB / 1.367 GB, free: 14.56 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002646/0.9228, allocations: 363.4 kB / 1.368 GB, free: 14.16 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.9228, allocations: 3.094 kB / 1.368 GB, free: 14.16 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.651e-05/0.9229, allocations: 2.156 kB / 1.368 GB, free: 14.16 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.9229, allocations: 6.344 kB / 1.368 GB, free: 14.16 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.9229, allocations: 0.75 kB / 1.368 GB, free: 14.16 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.9229, allocations: 0.6875 kB / 1.368 GB, free: 14.16 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.9229, allocations: 1.375 kB / 1.368 GB, free: 14.16 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.548e-05/0.923, allocations: 77.67 kB / 1.368 GB, free: 14.07 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 3.294e-05/0.923, allocations: 83.14 kB / 1.368 GB, free: 13.98 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.923, allocations: 9.406 kB / 1.368 GB, free: 13.97 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.557e-05/0.9231, allocations: 3.156 kB / 1.368 GB, free: 13.97 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.35e-05/0.9232, allocations: 5.844 kB / 1.368 GB, free: 13.97 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.9232, allocations: 5.406 kB / 1.368 GB, free: 13.96 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.879e-05/0.9232, allocations: 82.05 kB / 1.368 GB, free: 13.89 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9232, allocations: 0 / 1.368 GB, free: 13.89 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0001977/0.9234, allocations: 6.125 kB / 1.368 GB, free: 13.89 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.0003062/0.9237, allocations: 0.6131 MB / 1.368 GB, free: 13.28 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 7.77e-05/0.9238, allocations: 19.97 kB / 1.368 GB, free: 13.27 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.9238, allocations: 1.188 kB / 1.368 GB, free: 13.27 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 1.068e-05/0.9238, allocations: 4.047 kB / 1.368 GB, free: 13.27 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/0.9241, allocations: 5.766 kB / 1.368 GB, free: 13.27 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003454/0.9244, allocations: 153.4 kB / 1.369 GB, free: 13.11 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001891/0.9246, allocations: 0.6766 MB / 1.369 GB, free: 12.41 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 5.049e-05/0.9247, allocations: 5.844 kB / 1.369 GB, free: 12.41 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.876e-05/0.9247, allocations: 16.44 kB / 1.369 GB, free: 12.4 MB / 1.076 GB Notification: Performance of SimCode: time 2.71e-07/0.9247, allocations: 5.25 kB / 1.369 GB, free: 12.39 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01659/0.9413, allocations: 1.46 MB / 1.371 GB, free: 12.03 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.437/8.378, allocations: 1.312 kB / 1.371 GB, free: 12.03 MB / 1.076 GB (rm -f Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Media_Examples_AirTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_AirTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches