Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Fluid.Sensors.Examples.Pressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp.port_a.m_flow|senRelPre.p_rel|senPre_a.p|senPre_b.p",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure") translateModel(Buildings.Fluid.Sensors.Examples.Pressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp.port_a.m_flow|senRelPre.p_rel|senPre_a.p|senPre_b.p",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001242/0.001242, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.458/2.458, allocations: 390.9 MB / 0.666 GB, free: 2.527 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003593/0.0003595, allocations: 8 kB / 0.8154 GB, free: 13.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7613/0.7617, allocations: 142.4 MB / 0.9544 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Pressure): time 0.1869/0.9487, allocations: 154 MB / 1.105 GB, free: 5.176 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.008946/0.9577, allocations: 6.773 MB / 1.111 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005691/0.9583, allocations: 7.938 kB / 1.111 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0007707/0.9591, allocations: 151 kB / 1.112 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001578/0.9607, allocations: 441.9 kB / 1.112 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001293/0.962, allocations: 346.4 kB / 1.112 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001277/0.9633, allocations: 0.8727 MB / 1.113 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004696/0.9638, allocations: 192.7 kB / 1.113 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008147/0.9646, allocations: 314.7 kB / 1.114 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004152/0.9651, allocations: 215.1 kB / 1.114 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 5.865e-05/0.9651, allocations: 11.94 kB / 1.114 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.9663, allocations: 0.534 MB / 1.114 GB, free: 11.33 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001748/0.9665, allocations: 91.69 kB / 1.114 GB, free: 11.24 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.9666, allocations: 81.58 kB / 1.115 GB, free: 11.15 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0007166/0.9674, allocations: 383.1 kB / 1.115 GB, free: 10.78 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.9674, allocations: 4 kB / 1.115 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.553e-06/0.9674, allocations: 0 / 1.115 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.436e-05/0.9674, allocations: 4 kB / 1.115 GB, free: 10.77 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001128/0.9686, allocations: 0.5843 MB / 1.116 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.9686, allocations: 16.02 kB / 1.116 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004687/0.9691, allocations: 63.5 kB / 1.116 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005564/0.9697, allocations: 294.3 kB / 1.116 GB, free: 9.734 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.089e-05/0.9697, allocations: 20.39 kB / 1.116 GB, free: 9.711 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.212e-05/0.9697, allocations: 20 kB / 1.116 GB, free: 9.691 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005909/0.9703, allocations: 312.6 kB / 1.116 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.9704, allocations: 3.938 kB / 1.116 GB, free: 9.348 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.9704, allocations: 12 kB / 1.116 GB, free: 9.336 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.9704, allocations: 4 kB / 1.116 GB, free: 9.332 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004005/0.9708, allocations: 187.8 kB / 1.116 GB, free: 9.148 MB / 0.8731 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.00183/0.9727, allocations: 1.709 MB / 1.118 GB, free: 7.316 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.973, allocations: 102.5 kB / 1.118 GB, free: 7.207 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.9731, allocations: 80.81 kB / 1.118 GB, free: 7.125 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003058/0.9734, allocations: 186.2 kB / 1.118 GB, free: 6.906 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.9735, allocations: 34.56 kB / 1.118 GB, free: 6.863 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=11): time 1.225e-05/0.9735, allocations: 4 kB / 1.118 GB, free: 6.859 MB / 0.8731 GB Notification: Performance of matching and sorting (n=11): time 0.000742/0.9743, allocations: 233.2 kB / 1.119 GB, free: 6.625 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.9743, allocations: 59.34 kB / 1.119 GB, free: 6.555 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003666/0.9747, allocations: 316.5 kB / 1.119 GB, free: 6.238 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.9747, allocations: 29.7 kB / 1.119 GB, free: 6.203 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.9749, allocations: 195.8 kB / 1.119 GB, free: 6.008 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.285e-05/0.975, allocations: 43.44 kB / 1.119 GB, free: 5.965 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.045e-05/0.975, allocations: 7.938 kB / 1.119 GB, free: 5.957 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001689/0.9752, allocations: 342.8 kB / 1.12 GB, free: 5.613 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.9753, allocations: 55.95 kB / 1.12 GB, free: 5.559 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/0.9756, allocations: 198.4 kB / 1.12 GB, free: 5.305 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001897/0.9758, allocations: 87.91 kB / 1.12 GB, free: 5.219 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.9758, allocations: 7.953 kB / 1.12 GB, free: 5.211 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004948/0.9763, allocations: 265.1 kB / 1.12 GB, free: 4.945 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.9764, allocations: 198.1 kB / 1.12 GB, free: 4.699 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.9764, allocations: 4 kB / 1.12 GB, free: 4.695 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.9765, allocations: 8 kB / 1.12 GB, free: 4.688 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.9767, allocations: 43.92 kB / 1.12 GB, free: 4.645 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.9767, allocations: 11.92 kB / 1.12 GB, free: 4.633 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/0.977, allocations: 43.77 kB / 1.121 GB, free: 4.59 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.977, allocations: 16 kB / 1.121 GB, free: 4.574 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 8.596e-06/0.977, allocations: 4 kB / 1.121 GB, free: 4.57 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003967/0.9774, allocations: 199.6 kB / 1.121 GB, free: 4.375 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.9774, allocations: 7.953 kB / 1.121 GB, free: 4.367 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.025e-06/0.9775, allocations: 8 kB / 1.121 GB, free: 4.359 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.9776, allocations: 43.92 kB / 1.121 GB, free: 4.316 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.9776, allocations: 7.938 kB / 1.121 GB, free: 4.309 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/0.9779, allocations: 48.09 kB / 1.121 GB, free: 4.262 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.9779, allocations: 12 kB / 1.121 GB, free: 4.25 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (23): * Single equations (assignments): 23 * 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 0.0002093/0.9782, allocations: 234.5 kB / 1.121 GB, free: 4.012 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.358e-05/0.9782, allocations: 27.62 kB / 1.121 GB, free: 3.984 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004048/0.9786, allocations: 184.3 kB / 1.121 GB, free: 3.801 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.9787, allocations: 7.984 kB / 1.121 GB, free: 3.793 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.9787, allocations: 0 / 1.121 GB, free: 3.793 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.9787, allocations: 0 / 1.121 GB, free: 3.793 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009479/0.9796, allocations: 0.6094 MB / 1.122 GB, free: 3.105 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.9796, allocations: 4.219 kB / 1.122 GB, free: 3.102 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.9798, allocations: 27.98 kB / 1.122 GB, free: 3.074 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.9798, allocations: 0 / 1.122 GB, free: 3.074 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.9798, allocations: 4 kB / 1.122 GB, free: 3.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.9798, allocations: 7.984 kB / 1.122 GB, free: 3.062 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.9798, allocations: 3.938 kB / 1.122 GB, free: 3.059 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004003/0.9802, allocations: 313.1 kB / 1.122 GB, free: 2.715 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.9803, allocations: 108.8 kB / 1.122 GB, free: 2.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.396e-05/0.9804, allocations: 11.98 kB / 1.122 GB, free: 2.578 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/0.9806, allocations: 27.83 kB / 1.122 GB, free: 2.551 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.702e-05/0.9807, allocations: 15.92 kB / 1.122 GB, free: 2.535 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.9807, allocations: 15.88 kB / 1.122 GB, free: 2.52 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002302/0.9809, allocations: 227 kB / 1.123 GB, free: 2.301 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9809, allocations: 0 / 1.123 GB, free: 2.301 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006075/0.9815, allocations: 131.8 kB / 1.123 GB, free: 2.172 MB / 0.8731 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 (11): * Single equations (assignments): 11 * 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.0004619/0.982, allocations: 173.7 kB / 1.123 GB, free: 2 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005881/0.9826, allocations: 261 kB / 1.123 GB, free: 1.746 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.9826, allocations: 0 / 1.123 GB, free: 1.746 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.9828, allocations: 71.83 kB / 1.123 GB, free: 1.676 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008769/0.9837, allocations: 130.6 kB / 1.123 GB, free: 1.551 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009168/0.9846, allocations: 0.5754 MB / 1.124 GB, free: 0.9219 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.9849, allocations: 0.7797 MB / 1.125 GB, free: 116 kB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003052/0.9853, allocations: 87.55 kB / 1.125 GB, free: 32 kB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.688e-05/0.9853, allocations: 27.42 kB / 1.125 GB, free: 4 kB / 0.8731 GB Notification: Performance of SimCode: time 3.91e-07/0.9853, allocations: 0 / 1.125 GB, free: 4 kB / 0.8731 GB Notification: Performance of Templates: time 0.01044/0.9958, allocations: 4.585 MB / 1.129 GB, free: 11.5 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Pressure.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches