Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: translateModel(Buildings.Fluid.Sensors.Examples.VolumeFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.V_flow|senSteSta.V_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate") translateModel(Buildings.Fluid.Sensors.Examples.VolumeFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.V_flow|senSteSta.V_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001446/0.001446, allocations: 177.3 kB / 15.95 MB, free: 216 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.305/1.305, allocations: 223.2 MB / 239.9 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.573/2.573, allocations: 436.5 MB / 0.7104 GB, free: 7.754 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003247/0.0003249, allocations: 16 kB / 0.8708 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.574/0.5744, allocations: 153.6 MB / 1.021 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.VolumeFlowRate): time 0.1504/0.7249, allocations: 140.2 MB / 1.158 GB, free: 4.535 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.00251/0.7274, allocations: 1.575 MB / 1.159 GB, free: 2.957 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003371/0.7278, allocations: 15.88 kB / 1.159 GB, free: 2.941 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0006249/0.7284, allocations: 167.2 kB / 1.159 GB, free: 2.777 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001332/0.7298, allocations: 0.5219 MB / 1.16 GB, free: 2.254 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001276/0.731, allocations: 492 kB / 1.16 GB, free: 1.777 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0006621/0.7317, allocations: 431.5 kB / 1.161 GB, free: 1.355 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003678/0.7321, allocations: 189.1 kB / 1.161 GB, free: 1.172 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007447/0.7329, allocations: 339 kB / 1.161 GB, free: 0.8398 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.7331, allocations: 143.4 kB / 1.161 GB, free: 0.6992 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.692e-05/0.7332, allocations: 16 kB / 1.161 GB, free: 0.6836 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009477/0.7341, allocations: 423.3 kB / 1.162 GB, free: 276 kB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.7342, allocations: 95.7 kB / 1.162 GB, free: 180 kB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 9.271e-05/0.7343, allocations: 85.58 kB / 1.162 GB, free: 88 kB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006041/0.7349, allocations: 391.1 kB / 1.162 GB, free: 15.7 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.735, allocations: 0 / 1.162 GB, free: 15.7 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.532e-06/0.735, allocations: 0 / 1.162 GB, free: 15.7 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.205e-05/0.735, allocations: 0 / 1.162 GB, free: 15.7 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008543/0.7358, allocations: 0.5922 MB / 1.163 GB, free: 15.06 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.7359, allocations: 11.98 kB / 1.163 GB, free: 15.05 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0012/0.7371, allocations: 163.4 kB / 1.163 GB, free: 14.89 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004467/0.7375, allocations: 297.8 kB / 1.163 GB, free: 14.56 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.7376, allocations: 16.44 kB / 1.163 GB, free: 14.54 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.779e-05/0.7376, allocations: 24 kB / 1.163 GB, free: 14.52 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004782/0.7381, allocations: 275.5 kB / 1.164 GB, free: 14.23 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.7381, allocations: 0 / 1.164 GB, free: 14.23 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.7382, allocations: 12 kB / 1.164 GB, free: 14.22 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.7382, allocations: 4 kB / 1.164 GB, free: 14.21 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004193/0.7386, allocations: 207.8 kB / 1.164 GB, free: 14.01 MB / 0.92 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.001588/0.7402, allocations: 1.225 MB / 1.165 GB, free: 12.68 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002787/0.7405, allocations: 134.5 kB / 1.165 GB, free: 12.54 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004254/0.7409, allocations: 137 kB / 1.165 GB, free: 12.39 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/0.741, allocations: 34.56 kB / 1.165 GB, free: 12.35 MB / 0.92 GB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.741, allocations: 4 kB / 1.165 GB, free: 12.34 MB / 0.92 GB Notification: Performance of matching and sorting (n=15): time 0.0008286/0.7418, allocations: 300 kB / 1.166 GB, free: 12.05 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.7419, allocations: 51.41 kB / 1.166 GB, free: 11.98 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.7422, allocations: 312.5 kB / 1.166 GB, free: 11.67 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.7423, allocations: 29.7 kB / 1.166 GB, free: 11.63 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.7424, allocations: 188 kB / 1.166 GB, free: 11.45 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.86e-05/0.7425, allocations: 55.3 kB / 1.166 GB, free: 11.39 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.217e-06/0.7425, allocations: 0 / 1.166 GB, free: 11.39 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.7426, allocations: 342.8 kB / 1.167 GB, free: 11.05 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.7428, allocations: 67.95 kB / 1.167 GB, free: 10.98 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.743, allocations: 123.7 kB / 1.167 GB, free: 10.84 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.7432, allocations: 91.89 kB / 1.167 GB, free: 10.75 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.7432, allocations: 0 / 1.167 GB, free: 10.75 MB / 0.92 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000487/0.7437, allocations: 249 kB / 1.167 GB, free: 10.5 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.7438, allocations: 13.83 kB / 1.167 GB, free: 10.49 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.7438, allocations: 0 / 1.167 GB, free: 10.49 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.7438, allocations: 4 kB / 1.167 GB, free: 10.49 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002329/0.7441, allocations: 48.02 kB / 1.167 GB, free: 10.44 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.7441, allocations: 7.984 kB / 1.167 GB, free: 10.43 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.7443, allocations: 43.67 kB / 1.167 GB, free: 10.39 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.982e-05/0.7444, allocations: 8 kB / 1.167 GB, free: 10.38 MB / 0.92 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 (22): * Single equations (assignments): 22 * 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.0001576/0.7445, allocations: 149.8 kB / 1.167 GB, free: 10.23 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.608e-05/0.7446, allocations: 35.56 kB / 1.167 GB, free: 10.19 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000483/0.7451, allocations: 228.3 kB / 1.168 GB, free: 9.965 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.7451, allocations: 0 / 1.168 GB, free: 9.965 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.7451, allocations: 4 kB / 1.168 GB, free: 9.961 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.7451, allocations: 4 kB / 1.168 GB, free: 9.957 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.7461, allocations: 0.6835 MB / 1.168 GB, free: 9.195 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.7462, allocations: 4.141 kB / 1.168 GB, free: 9.191 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.7463, allocations: 35.92 kB / 1.168 GB, free: 9.156 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.989e-06/0.7464, allocations: 7.984 kB / 1.168 GB, free: 9.148 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.7464, allocations: 4 kB / 1.168 GB, free: 9.145 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.7464, allocations: 4.219 kB / 1.168 GB, free: 9.141 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.7464, allocations: 4 kB / 1.168 GB, free: 9.137 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006901/0.7471, allocations: 0.5304 MB / 1.169 GB, free: 8.527 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.7472, allocations: 124.6 kB / 1.169 GB, free: 8.387 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.426e-05/0.7473, allocations: 4 kB / 1.169 GB, free: 8.383 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.7475, allocations: 24.05 kB / 1.169 GB, free: 8.359 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.154e-05/0.7476, allocations: 15.88 kB / 1.169 GB, free: 8.344 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.7476, allocations: 8 kB / 1.169 GB, free: 8.336 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0002239/0.7478, allocations: 223 kB / 1.169 GB, free: 8.121 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7478, allocations: 0 / 1.169 GB, free: 8.121 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004523/0.7483, allocations: 83.84 kB / 1.169 GB, free: 8.039 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 1 (senDyn.d) * 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 (15): * Single equations (assignments): 15 * 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.0004628/0.7487, allocations: 161.9 kB / 1.17 GB, free: 7.879 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004673/0.7492, allocations: 179.9 kB / 1.17 GB, free: 7.703 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.7492, allocations: 0 / 1.17 GB, free: 7.703 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002043/0.7494, allocations: 91.83 kB / 1.17 GB, free: 7.613 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008737/0.7503, allocations: 162.6 kB / 1.17 GB, free: 7.461 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.7515, allocations: 0.7122 MB / 1.171 GB, free: 6.691 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.7519, allocations: 0.7836 MB / 1.171 GB, free: 5.883 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0002841/0.7521, allocations: 74.91 kB / 1.171 GB, free: 5.812 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.405e-05/0.7522, allocations: 23.44 kB / 1.172 GB, free: 5.789 MB / 0.92 GB Notification: Performance of SimCode: time 2.31e-07/0.7522, allocations: 0 / 1.172 GB, free: 5.789 MB / 0.92 GB Notification: Performance of Templates: time 0.01004/0.7623, allocations: 5.274 MB / 1.177 GB, free: 0.6094 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_VolumeFlowRate.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches