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.002001/0.002002, allocations: 108 kB / 15.6 MB, free: 132 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.002507/0.002507, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.405/1.405, 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.714/2.714, allocations: 469.4 MB / 0.742 GB, free: 7.676 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 68.09 kB / 0.9083 GB, free: 34.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3428, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate): time 0.1822/0.5251, allocations: 167.5 MB / 1.227 GB, free: 6.359 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.007703/0.5328, allocations: 6.548 MB / 1.234 GB, free: 15.79 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004899/0.5333, allocations: 15.88 kB / 1.234 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006102/0.534, allocations: 174.7 kB / 1.234 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.002322/0.5363, allocations: 0.8439 MB / 1.235 GB, free: 14.76 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.5374, allocations: 323.5 kB / 1.235 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0009556/0.5384, allocations: 0.7174 MB / 1.236 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005692/0.5389, allocations: 283.2 kB / 1.236 GB, free: 13.45 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.5403, allocations: 0.5487 MB / 1.236 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005694/0.5409, allocations: 263 kB / 1.237 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 7.554e-05/0.5409, allocations: 24 kB / 1.237 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000863/0.5418, allocations: 339.2 kB / 1.237 GB, free: 12.28 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.542, allocations: 111.6 kB / 1.237 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002685/0.5423, allocations: 163.2 kB / 1.237 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008066/0.5431, allocations: 458.6 kB / 1.238 GB, free: 11.56 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.788e-06/0.5431, allocations: 0 / 1.238 GB, free: 11.56 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.663e-06/0.5431, allocations: 0 / 1.238 GB, free: 11.56 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.844e-05/0.5432, allocations: 0 / 1.238 GB, free: 11.56 MB / 0.9981 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.001214/0.5444, allocations: 0.631 MB / 1.238 GB, free: 10.88 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.956e-05/0.5444, allocations: 8.031 kB / 1.238 GB, free: 10.88 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.5446, allocations: 58.55 kB / 1.238 GB, free: 10.81 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004869/0.5451, allocations: 67.52 kB / 1.239 GB, free: 10.74 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005781/0.5457, allocations: 305.2 kB / 1.239 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.98e-05/0.5457, allocations: 20.56 kB / 1.239 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/0.5458, allocations: 24 kB / 1.239 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006248/0.5464, allocations: 319.7 kB / 1.239 GB, free: 10.03 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.5464, allocations: 4 kB / 1.239 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.5465, allocations: 15.98 kB / 1.239 GB, free: 10.01 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.5465, allocations: 8 kB / 1.239 GB, free: 10 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004666/0.547, allocations: 201.5 kB / 1.239 GB, free: 9.801 MB / 0.9981 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.001793/0.5488, allocations: 1.534 MB / 1.241 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002655/0.549, allocations: 126.5 kB / 1.241 GB, free: 8 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.5492, allocations: 92.8 kB / 1.241 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006396/0.5499, allocations: 307.2 kB / 1.241 GB, free: 7.551 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.5499, allocations: 30.56 kB / 1.241 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=13): time 1.362e-06/0.5499, allocations: 0 / 1.241 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13): time 0.0007582/0.5507, allocations: 261.3 kB / 1.242 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.5507, allocations: 55.41 kB / 1.242 GB, free: 7.184 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000317/0.5511, allocations: 312.5 kB / 1.242 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.5511, allocations: 29.7 kB / 1.242 GB, free: 6.84 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.5512, allocations: 184.1 kB / 1.242 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.392e-05/0.5513, allocations: 47.3 kB / 1.242 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.633e-05/0.5514, allocations: 37.7 kB / 1.242 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.5515, allocations: 338.8 kB / 1.243 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.5517, allocations: 59.95 kB / 1.243 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.5519, allocations: 117 kB / 1.243 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003318/0.5522, allocations: 176.9 kB / 1.243 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.5523, allocations: 0 / 1.243 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004383/0.5527, allocations: 221.1 kB / 1.243 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.5527, allocations: 4 kB / 1.243 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.5527, allocations: 8.156 kB / 1.243 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.5528, allocations: 0 / 1.243 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.5529, allocations: 35.92 kB / 1.243 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.553, allocations: 0 / 1.243 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.5531, allocations: 35.67 kB / 1.243 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.63e-05/0.5532, allocations: 7.984 kB / 1.243 GB, free: 5.531 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.0001426/0.5533, allocations: 153.7 kB / 1.243 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.031e-05/0.5534, allocations: 27.66 kB / 1.243 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004439/0.5538, allocations: 215.5 kB / 1.244 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.5539, allocations: 0 / 1.244 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.5539, allocations: 4.047 kB / 1.244 GB, free: 5.125 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.5539, allocations: 7.969 kB / 1.244 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.5549, allocations: 0.6796 MB / 1.244 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.5549, allocations: 3.938 kB / 1.244 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.5551, allocations: 27.98 kB / 1.244 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.5551, allocations: 0 / 1.244 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.5551, allocations: 16.16 kB / 1.244 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.5551, allocations: 4 kB / 1.244 GB, free: 4.309 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.5551, allocations: 3.938 kB / 1.244 GB, free: 4.305 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004432/0.5556, allocations: 329.2 kB / 1.245 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.5557, allocations: 124.7 kB / 1.245 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.383e-05/0.5558, allocations: 3.938 kB / 1.245 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.5559, allocations: 15.98 kB / 1.245 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.52e-05/0.556, allocations: 15.92 kB / 1.245 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.556, allocations: 12 kB / 1.245 GB, free: 3.758 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002328/0.5563, allocations: 223 kB / 1.245 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5563, allocations: 0 / 1.245 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004055/0.5567, allocations: 71.84 kB / 1.245 GB, free: 3.469 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.001103/0.5578, allocations: 0.9129 MB / 1.246 GB, free: 2.512 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004482/0.5582, allocations: 167.9 kB / 1.246 GB, free: 2.348 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5583, allocations: 0 / 1.246 GB, free: 2.348 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001885/0.5585, allocations: 87.89 kB / 1.246 GB, free: 2.262 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008777/0.5593, allocations: 148.8 kB / 1.246 GB, free: 2.121 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4846/1.044, allocations: 2.813 MB / 1.249 GB, free: 188.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/1.044, allocations: 0.7813 MB / 1.25 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002875/1.045, allocations: 58.8 kB / 1.25 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/1.045, allocations: 91.86 kB / 1.25 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of SimCode: time 1.273e-06/1.045, allocations: 0 / 1.25 GB, free: 187.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02846/1.073, allocations: 8.04 MB / 1.258 GB, free: 187.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.858/8.931, allocations: 9.844 kB / 1.258 GB, free: 187.4 MB / 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 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.csv","/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