Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.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.Velocity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.v|senSteSta.v",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity") translateModel(Buildings.Fluid.Sensors.Examples.Velocity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.v|senSteSta.v",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 100 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.001995/0.001995, 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.444/1.444, allocations: 223.2 MB / 239.9 MB, free: 5.43 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.483/2.483, allocations: 390.2 MB / 0.6653 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005153/0.0005155, allocations: 12 kB / 0.8145 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7611/0.7617, allocations: 142.3 MB / 0.9535 GB, free: 8.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.1919/0.9536, allocations: 140.2 MB / 1.09 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002858/0.9565, allocations: 1.581 MB / 1.092 GB, free: 2.027 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002865/0.9568, allocations: 7.938 kB / 1.092 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0006833/0.9575, allocations: 183.1 kB / 1.092 GB, free: 1.84 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.00139/0.9589, allocations: 0.5142 MB / 1.093 GB, free: 1.324 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001351/0.9603, allocations: 490.3 kB / 1.093 GB, free: 0.8516 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0005944/0.9609, allocations: 444.4 kB / 1.094 GB, free: 424 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003421/0.9613, allocations: 197.1 kB / 1.094 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007825/0.9621, allocations: 355 kB / 1.094 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002097/0.9623, allocations: 151.4 kB / 1.094 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.38e-05/0.9623, allocations: 12 kB / 1.094 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009286/0.9633, allocations: 427.3 kB / 1.095 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.9634, allocations: 95.7 kB / 1.095 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.085e-05/0.9635, allocations: 85.58 kB / 1.095 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005072/0.964, allocations: 399 kB / 1.095 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.634e-06/0.964, allocations: 4 kB / 1.095 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.914e-06/0.964, allocations: 0 / 1.095 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.964, allocations: 0 / 1.095 GB, free: 14.71 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009381/0.965, allocations: 0.5922 MB / 1.096 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.965, allocations: 16.03 kB / 1.096 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.9662, allocations: 171.2 kB / 1.096 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004465/0.9667, allocations: 298.9 kB / 1.096 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.61e-05/0.9667, allocations: 16.56 kB / 1.096 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.675e-05/0.9668, allocations: 27.94 kB / 1.096 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004739/0.9673, allocations: 285.9 kB / 1.097 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.9673, allocations: 0 / 1.097 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.9673, allocations: 12 kB / 1.097 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.9673, allocations: 7.953 kB / 1.097 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004195/0.9678, allocations: 216.7 kB / 1.097 GB, free: 12.98 MB / 0.8575 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.001425/0.9692, allocations: 1.23 MB / 1.098 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002799/0.9695, allocations: 154.5 kB / 1.098 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000422/0.9699, allocations: 137 kB / 1.098 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.97, allocations: 34.5 kB / 1.098 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=17): time 1.773e-06/0.97, allocations: 0 / 1.098 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=17): time 0.0007917/0.9708, allocations: 310.3 kB / 1.099 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.9708, allocations: 51.41 kB / 1.099 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003196/0.9712, allocations: 324.5 kB / 1.099 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.9712, allocations: 29.7 kB / 1.099 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.9713, allocations: 184.1 kB / 1.099 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.712e-05/0.9714, allocations: 59.19 kB / 1.099 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.041e-05/0.9714, allocations: 8 kB / 1.099 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.9715, allocations: 342.8 kB / 1.1 GB, free: 9.969 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.9717, allocations: 71.95 kB / 1.1 GB, free: 9.898 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/0.9719, allocations: 142.5 kB / 1.1 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001783/0.9721, allocations: 83.97 kB / 1.1 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.9721, allocations: 0 / 1.1 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004678/0.9726, allocations: 267.1 kB / 1.1 GB, free: 9.395 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.9726, allocations: 4 kB / 1.1 GB, free: 9.391 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.9726, allocations: 0 / 1.1 GB, free: 9.391 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.9726, allocations: 7.938 kB / 1.1 GB, free: 9.383 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.9729, allocations: 52.02 kB / 1.1 GB, free: 9.332 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/0.9729, allocations: 4 kB / 1.1 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.9731, allocations: 39.66 kB / 1.1 GB, free: 9.289 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/0.9732, allocations: 15.94 kB / 1.1 GB, free: 9.273 MB / 0.8575 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 (24): * Single equations (assignments): 24 * 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.0001516/0.9733, allocations: 149.7 kB / 1.1 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.934e-05/0.9734, allocations: 31.62 kB / 1.1 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004774/0.9739, allocations: 241.8 kB / 1.101 GB, free: 8.844 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.9739, allocations: 4 kB / 1.101 GB, free: 8.84 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.9739, allocations: 0 / 1.101 GB, free: 8.84 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.9739, allocations: 3.984 kB / 1.101 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.9749, allocations: 0.7185 MB / 1.101 GB, free: 8.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.9749, allocations: 0 / 1.101 GB, free: 8.039 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/0.9751, allocations: 40.06 kB / 1.101 GB, free: 8 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.9751, allocations: 0 / 1.101 GB, free: 8 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.9751, allocations: 11.98 kB / 1.101 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.9752, allocations: 11.94 kB / 1.101 GB, free: 7.977 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.9752, allocations: 224 / 1.101 GB, free: 7.977 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006901/0.9759, allocations: 0.5414 MB / 1.102 GB, free: 7.355 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.976, allocations: 124.8 kB / 1.102 GB, free: 7.215 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.783e-05/0.976, allocations: 15.94 kB / 1.102 GB, free: 7.199 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.9762, allocations: 11.97 kB / 1.102 GB, free: 7.188 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.414e-05/0.9763, allocations: 23.97 kB / 1.102 GB, free: 7.164 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.9763, allocations: 11.94 kB / 1.102 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002104/0.9765, allocations: 227 kB / 1.102 GB, free: 6.93 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9765, allocations: 0 / 1.102 GB, free: 6.93 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003917/0.9769, allocations: 80 kB / 1.102 GB, free: 6.852 MB / 0.8575 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 (17): * Single equations (assignments): 17 * 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.0004094/0.9774, allocations: 169.9 kB / 1.103 GB, free: 6.684 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000436/0.9778, allocations: 187.9 kB / 1.103 GB, free: 6.5 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.9778, allocations: 0 / 1.103 GB, free: 6.5 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001901/0.978, allocations: 99.81 kB / 1.103 GB, free: 6.402 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008143/0.9788, allocations: 157.9 kB / 1.103 GB, free: 6.246 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.9799, allocations: 0.7429 MB / 1.104 GB, free: 5.453 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.9802, allocations: 0.7914 MB / 1.104 GB, free: 4.637 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002137/0.9804, allocations: 66.92 kB / 1.105 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.452e-05/0.9805, allocations: 27.44 kB / 1.105 GB, free: 4.547 MB / 0.8575 GB Notification: Performance of SimCode: time 3.21e-07/0.9805, allocations: 3.938 kB / 1.105 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of Templates: time 0.009714/0.9902, allocations: 5.332 MB / 1.11 GB, free: 15.31 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Velocity.csv","../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches