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.0008295/0.0008295, allocations: 92.16 kB / 16.02 MB, free: 80 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.0009938/0.0009939, allocations: 182.4 kB / 16.92 MB, free: 6.922 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.402/1.402, allocations: 223.3 MB / 241 MB, free: 5.254 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.463/2.463, allocations: 390.9 MB / 0.667 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00048/0.0004801, allocations: 12 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7287/0.7292, allocations: 142.4 MB / 0.9557 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Pressure): time 0.1893/0.9185, allocations: 165 MB / 1.117 GB, free: 9.762 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.009601/0.9282, allocations: 7.236 MB / 1.124 GB, free: 2.504 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006671/0.9289, allocations: 15.88 kB / 1.124 GB, free: 2.488 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0008404/0.9298, allocations: 175 kB / 1.124 GB, free: 2.316 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001786/0.9316, allocations: 0.5486 MB / 1.125 GB, free: 1.766 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.933, allocations: 382.2 kB / 1.125 GB, free: 1.395 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001433/0.9344, allocations: 1.025 MB / 1.126 GB, free: 376 kB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005381/0.935, allocations: 218.4 kB / 1.126 GB, free: 156 kB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009088/0.9359, allocations: 334.7 kB / 1.127 GB, free: 15.82 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004253/0.9363, allocations: 227 kB / 1.127 GB, free: 15.6 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.09e-05/0.9364, allocations: 16 kB / 1.127 GB, free: 15.59 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001533/0.938, allocations: 0.7794 MB / 1.128 GB, free: 14.8 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.9381, allocations: 91.7 kB / 1.128 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0002544/0.9384, allocations: 172.9 kB / 1.128 GB, free: 14.54 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0007891/0.9392, allocations: 403 kB / 1.128 GB, free: 14.14 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.9392, allocations: 0 / 1.128 GB, free: 14.14 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.863e-06/0.9392, allocations: 0 / 1.128 GB, free: 14.14 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.247e-05/0.9392, allocations: 0 / 1.128 GB, free: 14.14 MB / 0.8887 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.001043/0.9403, allocations: 0.5844 MB / 1.129 GB, free: 13.51 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.9403, allocations: 12.03 kB / 1.129 GB, free: 13.5 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004584/0.9408, allocations: 67.44 kB / 1.129 GB, free: 13.43 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004905/0.9413, allocations: 302.2 kB / 1.129 GB, free: 13.1 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.004e-05/0.9414, allocations: 16.44 kB / 1.129 GB, free: 13.08 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.333e-05/0.9414, allocations: 24 kB / 1.129 GB, free: 13.05 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005833/0.942, allocations: 312.5 kB / 1.129 GB, free: 12.71 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.942, allocations: 4 kB / 1.129 GB, free: 12.71 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.9421, allocations: 11.94 kB / 1.129 GB, free: 12.7 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.9421, allocations: 8 kB / 1.129 GB, free: 12.69 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004409/0.9425, allocations: 183.8 kB / 1.13 GB, free: 12.51 MB / 0.8887 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.001968/0.9445, allocations: 1.709 MB / 1.131 GB, free: 10.68 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003023/0.9448, allocations: 90.61 kB / 1.131 GB, free: 10.58 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000192/0.945, allocations: 92.8 kB / 1.131 GB, free: 10.49 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002951/0.9453, allocations: 186.1 kB / 1.132 GB, free: 10.27 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.9454, allocations: 42.5 kB / 1.132 GB, free: 10.22 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=11): time 1.783e-06/0.9454, allocations: 4 kB / 1.132 GB, free: 10.21 MB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.0007668/0.9462, allocations: 237.1 kB / 1.132 GB, free: 9.977 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.9462, allocations: 59.41 kB / 1.132 GB, free: 9.906 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.9466, allocations: 312.5 kB / 1.132 GB, free: 9.59 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.9466, allocations: 33.7 kB / 1.132 GB, free: 9.551 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.9468, allocations: 191.8 kB / 1.133 GB, free: 9.359 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 4.799e-05/0.9468, allocations: 47.44 kB / 1.133 GB, free: 9.312 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-05/0.9469, allocations: 21.7 kB / 1.133 GB, free: 9.285 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.947, allocations: 338.8 kB / 1.133 GB, free: 8.945 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.9472, allocations: 59.95 kB / 1.133 GB, free: 8.887 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002757/0.9474, allocations: 208 kB / 1.133 GB, free: 8.625 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000399/0.9479, allocations: 241.5 kB / 1.133 GB, free: 8.34 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.9479, allocations: 3.984 kB / 1.133 GB, free: 8.336 MB / 0.8887 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005353/0.9484, allocations: 261.2 kB / 1.134 GB, free: 8.074 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001337/0.9486, allocations: 199.6 kB / 1.134 GB, free: 7.828 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.9486, allocations: 4 kB / 1.134 GB, free: 7.824 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.9486, allocations: 8 kB / 1.134 GB, free: 7.816 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.9488, allocations: 51.91 kB / 1.134 GB, free: 7.766 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.9488, allocations: 4 kB / 1.134 GB, free: 7.762 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003039/0.9491, allocations: 43.67 kB / 1.134 GB, free: 7.719 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.242e-05/0.9492, allocations: 12 kB / 1.134 GB, free: 7.707 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 8.196e-06/0.9492, allocations: 4 kB / 1.134 GB, free: 7.703 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004192/0.9496, allocations: 212 kB / 1.134 GB, free: 7.496 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.9496, allocations: 4.047 kB / 1.134 GB, free: 7.492 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.9497, allocations: 15.92 kB / 1.134 GB, free: 7.477 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.9498, allocations: 47.92 kB / 1.134 GB, free: 7.43 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.9499, allocations: 11.98 kB / 1.134 GB, free: 7.418 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002781/0.9501, allocations: 39.77 kB / 1.134 GB, free: 7.379 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.9502, allocations: 12.09 kB / 1.134 GB, free: 7.367 MB / 0.8887 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002/0.9504, allocations: 229 kB / 1.135 GB, free: 7.133 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.47e-05/0.9505, allocations: 43.55 kB / 1.135 GB, free: 7.09 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004196/0.9509, allocations: 176.8 kB / 1.135 GB, free: 6.914 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.9509, allocations: 4 kB / 1.135 GB, free: 6.91 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.9509, allocations: 0 / 1.135 GB, free: 6.91 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.9509, allocations: 0 / 1.135 GB, free: 6.91 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009984/0.9519, allocations: 0.6094 MB / 1.135 GB, free: 6.223 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.9519, allocations: 4 kB / 1.135 GB, free: 6.219 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.9521, allocations: 32.12 kB / 1.135 GB, free: 6.188 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.9521, allocations: 8 kB / 1.135 GB, free: 6.18 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.9521, allocations: 7.938 kB / 1.135 GB, free: 6.172 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.9521, allocations: 4 kB / 1.135 GB, free: 6.168 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.9521, allocations: 4 kB / 1.135 GB, free: 6.164 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004282/0.9526, allocations: 317 kB / 1.136 GB, free: 5.816 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.9527, allocations: 116.7 kB / 1.136 GB, free: 5.684 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.663e-05/0.9527, allocations: 8 kB / 1.136 GB, free: 5.676 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.9529, allocations: 19.92 kB / 1.136 GB, free: 5.656 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.137e-05/0.953, allocations: 23.86 kB / 1.136 GB, free: 5.633 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.953, allocations: 4 kB / 1.136 GB, free: 5.629 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0002312/0.9533, allocations: 231 kB / 1.136 GB, free: 5.406 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9533, allocations: 0 / 1.136 GB, free: 5.406 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0005971/0.9539, allocations: 127.8 kB / 1.136 GB, free: 5.281 MB / 0.8887 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 (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.0004291/0.9543, allocations: 160.9 kB / 1.136 GB, free: 5.121 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0006247/0.9549, allocations: 261.4 kB / 1.137 GB, free: 4.867 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.955, allocations: 4 kB / 1.137 GB, free: 4.863 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.9551, allocations: 71.95 kB / 1.137 GB, free: 4.793 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.9562, allocations: 133.7 kB / 1.137 GB, free: 4.664 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009127/0.9571, allocations: 0.6376 MB / 1.137 GB, free: 3.965 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.9574, allocations: 0.7758 MB / 1.138 GB, free: 3.16 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.385e-05/0.9575, allocations: 27.44 kB / 1.138 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of SimCode: time 3.71e-07/0.9575, allocations: 0 / 1.138 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of Templates: time 0.007228/0.9647, allocations: 4.451 MB / 1.143 GB, free: 14.72 MB / 0.9044 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Pressure.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches