Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate",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.001389/0.001389, 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.001553/0.001553, allocations: 196.5 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.213/1.213, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.481/2.481, allocations: 461.9 MB / 0.7346 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 64.41 kB / 0.8992 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2656, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.1613/0.4269, allocations: 167.5 MB / 1.217 GB, free: 100 kB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.007142/0.4341, allocations: 6.539 MB / 1.223 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003205/0.4344, allocations: 15.88 kB / 1.223 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000443/0.4349, allocations: 162.8 kB / 1.223 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001707/0.4366, allocations: 0.8401 MB / 1.224 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007691/0.4374, allocations: 334.4 kB / 1.224 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0008484/0.4383, allocations: 0.7135 MB / 1.225 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004125/0.4387, allocations: 274.7 kB / 1.225 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009575/0.4396, allocations: 0.5487 MB / 1.226 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004225/0.4401, allocations: 267 kB / 1.226 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.629e-05/0.4401, allocations: 20 kB / 1.226 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005766/0.4407, allocations: 347.1 kB / 1.226 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.4409, allocations: 107.6 kB / 1.226 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001968/0.4411, allocations: 159.2 kB / 1.227 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006158/0.4417, allocations: 462.5 kB / 1.227 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.4417, allocations: 4 kB / 1.227 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.122e-06/0.4417, allocations: 0 / 1.227 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.376e-06/0.4417, allocations: 0 / 1.227 GB, free: 5.316 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0008191/0.4425, allocations: 0.6193 MB / 1.228 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.4426, allocations: 16.62 kB / 1.228 GB, free: 4.633 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.362e-05/0.4427, allocations: 62.53 kB / 1.228 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002827/0.4429, allocations: 59.53 kB / 1.228 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003629/0.4433, allocations: 309.2 kB / 1.228 GB, free: 4.16 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.989e-05/0.4434, allocations: 24.5 kB / 1.228 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.4434, allocations: 24 kB / 1.228 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004907/0.4439, allocations: 327.7 kB / 1.228 GB, free: 3.77 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.4439, allocations: 0 / 1.228 GB, free: 3.77 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/0.444, allocations: 12 kB / 1.228 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-06/0.444, allocations: 4 kB / 1.228 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004121/0.4444, allocations: 205.4 kB / 1.229 GB, free: 3.555 MB / 0.9825 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.4459, allocations: 1.542 MB / 1.23 GB, free: 1.875 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.4461, allocations: 122.5 kB / 1.23 GB, free: 1.746 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.4463, allocations: 88.8 kB / 1.23 GB, free: 1.656 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006352/0.4469, allocations: 303.2 kB / 1.231 GB, free: 1.305 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.447, allocations: 38.56 kB / 1.231 GB, free: 1.258 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=13): time 1.353e-06/0.447, allocations: 0 / 1.231 GB, free: 1.258 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13): time 0.0006862/0.4476, allocations: 265.3 kB / 1.231 GB, free: 0.9922 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.4477, allocations: 55.34 kB / 1.231 GB, free: 0.9258 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000292/0.448, allocations: 308.6 kB / 1.231 GB, free: 0.6211 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.448, allocations: 29.7 kB / 1.231 GB, free: 0.5859 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.4482, allocations: 184 kB / 1.231 GB, free: 412 kB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.645e-05/0.4482, allocations: 51.28 kB / 1.231 GB, free: 360 kB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.832e-05/0.4483, allocations: 33.72 kB / 1.232 GB, free: 320 kB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4484, allocations: 346.8 kB / 1.232 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.4486, allocations: 55.95 kB / 1.232 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.4487, allocations: 113.1 kB / 1.232 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003075/0.4491, allocations: 176.9 kB / 1.232 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4491, allocations: 0 / 1.232 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003837/0.4495, allocations: 217.1 kB / 1.232 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.4495, allocations: 8 kB / 1.232 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.4495, allocations: 0 / 1.232 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.4495, allocations: 4 kB / 1.232 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.4497, allocations: 39.91 kB / 1.232 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.4497, allocations: 4 kB / 1.232 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.4498, allocations: 23.77 kB / 1.232 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.4499, allocations: 12 kB / 1.232 GB, free: 15.28 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (17): * Single equations (assignments): 17 * 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.0001273/0.45, allocations: 153.8 kB / 1.233 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.943e-05/0.4501, allocations: 31.62 kB / 1.233 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004389/0.4505, allocations: 212 kB / 1.233 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.4505, allocations: 4 kB / 1.233 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.4505, allocations: 0 / 1.233 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.4505, allocations: 0 / 1.233 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000987/0.4515, allocations: 0.6795 MB / 1.234 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.4516, allocations: 8.219 kB / 1.234 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.4517, allocations: 27.92 kB / 1.234 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.4517, allocations: 4 kB / 1.234 GB, free: 14.08 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.4517, allocations: 11.94 kB / 1.234 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.4517, allocations: 3.984 kB / 1.234 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4517, allocations: 7.938 kB / 1.234 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003968/0.4521, allocations: 325.1 kB / 1.234 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.4522, allocations: 128.7 kB / 1.234 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.882e-05/0.4523, allocations: 11.94 kB / 1.234 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.4524, allocations: 12 kB / 1.234 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.9e-05/0.4525, allocations: 11.98 kB / 1.234 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.4525, allocations: 8 kB / 1.234 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00019/0.4527, allocations: 219 kB / 1.234 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4527, allocations: 4 kB / 1.234 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003278/0.453, allocations: 67.84 kB / 1.234 GB, free: 13.23 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (13): * Single equations (assignments): 13 * 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.0009136/0.454, allocations: 0.9257 MB / 1.235 GB, free: 12.26 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003618/0.4543, allocations: 163.7 kB / 1.235 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4543, allocations: 0 / 1.235 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.4545, allocations: 80.64 kB / 1.235 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007462/0.4553, allocations: 148.5 kB / 1.236 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003001/0.4583, allocations: 2.826 MB / 1.238 GB, free: 8.906 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.4586, allocations: 0.7834 MB / 1.239 GB, free: 8.098 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001816/0.4588, allocations: 58.92 kB / 1.239 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.4589, allocations: 91.41 kB / 1.239 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of SimCode: time 2.91e-07/0.4589, allocations: 0 / 1.239 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.461/5.92, allocations: 8.037 MB / 1.247 GB, free: 76 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/18.68, allocations: 11.94 kB / 1.247 GB, free: 64 kB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches