Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senM_flow.m_flow|senH.h_out|senH_flow.H_flow|senHSen_flow.H_flow|senHLat_flow.H_flow|pro.y|add.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate") translateModel(Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senM_flow.m_flow|senH.h_out|senH_flow.H_flow|senHSen_flow.H_flow|senHLat_flow.H_flow|pro.y|add.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.524/1.524, allocations: 249.5 MB / 257 MB, free: 6.848 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 183.4 kB / 316.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.959/1.959, allocations: 205.3 MB / 0.5671 GB, free: 15.89 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 90.41 kB / 0.6714 GB, free: 5.004 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.124e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2242, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.622/5.846, allocations: 2.228 GB / 3.113 GB, free: 138.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003369/5.847, allocations: 87.95 kB / 3.113 GB, free: 138.3 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.25/7.097, allocations: 419.8 MB / 3.523 GB, free: 65.77 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.435e-06/7.097, allocations: 0 / 3.523 GB, free: 65.77 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.479e-05/7.097, allocations: 19.94 kB / 3.523 GB, free: 65.75 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001673/7.099, allocations: 0.8528 MB / 3.524 GB, free: 64.85 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/7.099, allocations: 8.562 kB / 3.524 GB, free: 64.84 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009261/7.1, allocations: 159.2 kB / 3.524 GB, free: 64.68 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/7.101, allocations: 0.6876 MB / 3.525 GB, free: 63.95 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.851e-05/7.101, allocations: 12 kB / 3.525 GB, free: 63.94 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.903e-05/7.102, allocations: 31.91 kB / 3.525 GB, free: 63.91 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004573/7.102, allocations: 289.4 kB / 3.525 GB, free: 63.63 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004625/7.102, allocations: 310 kB / 3.526 GB, free: 63.32 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/7.102, allocations: 0 / 3.526 GB, free: 63.32 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/7.103, allocations: 0 / 3.526 GB, free: 63.32 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/7.103, allocations: 8 kB / 3.526 GB, free: 63.31 MB / 0.8698 GB Warning: The model contains alias variables with conflicting start and/or 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.00149/7.104, allocations: 1.288 MB / 3.527 GB, free: 61.92 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003362/7.104, allocations: 267.1 kB / 3.527 GB, free: 61.65 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/7.105, allocations: 141.4 kB / 3.527 GB, free: 61.51 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004599/7.105, allocations: 303.5 kB / 3.528 GB, free: 61.16 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/7.105, allocations: 34.84 kB / 3.528 GB, free: 61.11 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=33): time 1.483e-06/7.105, allocations: 4 kB / 3.528 GB, free: 61.11 MB / 0.8698 GB Notification: Performance of matching and sorting (n=33): time 0.00106/7.106, allocations: 463.4 kB / 3.528 GB, free: 60.65 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.345e-05/7.106, allocations: 51.41 kB / 3.528 GB, free: 60.59 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/7.106, allocations: 217.2 kB / 3.528 GB, free: 60.37 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/7.106, allocations: 25.7 kB / 3.528 GB, free: 60.34 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 9.746e-05/7.107, allocations: 220.5 kB / 3.529 GB, free: 60.12 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.607e-05/7.107, allocations: 114.2 kB / 3.529 GB, free: 60 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.537e-05/7.107, allocations: 0 / 3.529 GB, free: 60 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.295e-05/7.107, allocations: 346.8 kB / 3.529 GB, free: 59.66 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/7.107, allocations: 99.98 kB / 3.529 GB, free: 59.56 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/7.107, allocations: 168.6 kB / 3.529 GB, free: 59.38 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005417/7.108, allocations: 264.7 kB / 3.53 GB, free: 59.12 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/7.108, allocations: 0 / 3.53 GB, free: 59.12 MB / 0.8698 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007497/7.108, allocations: 452.8 kB / 3.53 GB, free: 58.67 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/7.108, allocations: 7.938 kB / 3.53 GB, free: 58.66 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/7.108, allocations: 4 kB / 3.53 GB, free: 58.66 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/7.108, allocations: 0 / 3.53 GB, free: 58.66 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003022/7.109, allocations: 71.89 kB / 3.53 GB, free: 58.59 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/7.109, allocations: 4 kB / 3.53 GB, free: 58.58 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002536/7.109, allocations: 39.84 kB / 3.53 GB, free: 58.54 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.121e-05/7.109, allocations: 16 kB / 3.53 GB, free: 58.53 MB / 0.8698 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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 7.903e-05/7.109, allocations: 112.9 kB / 3.53 GB, free: 58.41 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.994e-05/7.109, allocations: 27.62 kB / 3.53 GB, free: 58.38 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009251/7.11, allocations: 0.4888 MB / 3.531 GB, free: 57.88 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/7.11, allocations: 4 kB / 3.531 GB, free: 57.88 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/7.11, allocations: 0 / 3.531 GB, free: 57.88 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/7.11, allocations: 0 / 3.531 GB, free: 57.88 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00145/7.112, allocations: 1.038 MB / 3.532 GB, free: 56.78 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/7.112, allocations: 8 kB / 3.532 GB, free: 56.77 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002999/7.112, allocations: 67.91 kB / 3.532 GB, free: 56.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/7.112, allocations: 4 kB / 3.532 GB, free: 56.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/7.112, allocations: 7.984 kB / 3.532 GB, free: 56.69 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/7.112, allocations: 3.938 kB / 3.532 GB, free: 56.69 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/7.112, allocations: 4 kB / 3.532 GB, free: 56.68 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/7.113, allocations: 0.8338 MB / 3.533 GB, free: 55.77 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/7.113, allocations: 140.7 kB / 3.533 GB, free: 55.61 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.386e-05/7.113, allocations: 0 / 3.533 GB, free: 55.61 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002427/7.113, allocations: 27.97 kB / 3.533 GB, free: 55.59 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.567e-05/7.113, allocations: 27.92 kB / 3.533 GB, free: 55.56 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/7.114, allocations: 12 kB / 3.533 GB, free: 55.55 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.000116/7.114, allocations: 168.6 kB / 3.533 GB, free: 55.38 MB / 0.8698 GB Notification: Performance of sort global known variables: time 3.4e-07/7.114, allocations: 4 kB / 3.533 GB, free: 55.38 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0008218/7.114, allocations: 219.6 kB / 3.533 GB, free: 55.16 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (senH_flow.h_out,senH.h_out,senHLat_flow.h_out,senHSen_flow.h_out) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * 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.00221/7.117, allocations: 1.71 MB / 3.535 GB, free: 53.39 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0004471/7.117, allocations: 271.8 kB / 3.535 GB, free: 53.12 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/7.117, allocations: 3.938 kB / 3.535 GB, free: 53.12 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001869/7.117, allocations: 151.8 kB / 3.535 GB, free: 52.97 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007092/7.118, allocations: 115.9 kB / 3.535 GB, free: 52.86 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/7.119, allocations: 0.7777 MB / 3.536 GB, free: 52.04 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/7.12, allocations: 0.8464 MB / 3.537 GB, free: 51.17 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002661/7.12, allocations: 83.17 kB / 3.537 GB, free: 51.09 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.645e-05/7.12, allocations: 31.44 kB / 3.537 GB, free: 51.06 MB / 0.8698 GB Notification: Performance of SimCode: time 8.01e-07/7.12, allocations: 4 kB / 3.537 GB, free: 51.05 MB / 0.8698 GB Notification: Performance of Templates: time 0.0209/7.141, allocations: 13.76 MB / 3.551 GB, free: 37.36 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Sensors_Examples_MoistAirEnthalpyFlowRate.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MoistAirEnthalpyFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,senM_flow.m_flow,senH.h_out,senH_flow.H_flow,senHSen_flow.H_flow,senHLat_flow.H_flow,pro.y,add.y Variables in the result:add.k1,add.k2,add.u1,add.u2,add.y,pro.u2,pro.y,ramp.duration,ramp.height,ramp.offset,ramp.startTime,senH.allowFlowReversal,senH.dynamic,senH.h_out,senH.h_out_start,senH.initType,senH.m_flow_nominal,senH.m_flow_small,senH.tau,senH.tauInv,senHLat_flow.H_flow,senHLat_flow.allowFlowReversal,senHLat_flow.dynamic,senHLat_flow.h_out_start,senHLat_flow.i_x,senHLat_flow.initType,senHLat_flow.m_flow_nominal,senHLat_flow.m_flow_small,senHLat_flow.tau,senHLat_flow.tauInv,senHSen_flow.H_flow,senHSen_flow.allowFlowReversal,senHSen_flow.dynamic,senHSen_flow.h_out_start,senHSen_flow.i_x,senHSen_flow.initType,senHSen_flow.m_flow_nominal,senHSen_flow.m_flow_small,senHSen_flow.tau,senHSen_flow.tauInv,senH_flow.H_flow,senH_flow.allowFlowReversal,senH_flow.dynamic,senH_flow.h_out_start,senH_flow.initType,senH_flow.m_flow_nominal,senH_flow.m_flow_small,senH_flow.tau,senH_flow.tauInv,senM_flow.allowFlowReversal,senM_flow.m_flow,senM_flow.m_flow_nominal,senM_flow.m_flow_small,sin.T,sin.X[1],sin.X[2],sin.flowDirection,sin.nPorts,sin.p,sin.verifyInputs,sou.T,sou.X[1],sou.X[2],sou.flowDirection,sou.m_flow,sou.nPorts,sou.verifyInputs,time