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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.006846/0.006846, allocations: 102.7 kB / 15.73 MB, free: 6.488 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.001664/0.001664, allocations: 195.2 kB / 16.68 MB, free: 6.375 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.459/1.459, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.507/2.507, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 63.14 kB / 0.9509 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.2994, allocations: 140.4 MB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.174/0.4734, allocations: 167.4 MB / 1.251 GB, free: 9.426 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002966/0.4764, allocations: 1.562 MB / 1.253 GB, free: 7.863 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004401/0.4769, allocations: 11.88 kB / 1.253 GB, free: 7.852 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0005731/0.4775, allocations: 150.8 kB / 1.253 GB, free: 7.703 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.002178/0.4797, allocations: 0.7429 MB / 1.254 GB, free: 6.957 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001716/0.4815, allocations: 0.607 MB / 1.254 GB, free: 6.352 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0009755/0.4825, allocations: 0.7293 MB / 1.255 GB, free: 5.621 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004607/0.4829, allocations: 225.1 kB / 1.255 GB, free: 5.398 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008583/0.4838, allocations: 350.7 kB / 1.256 GB, free: 5.055 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000413/0.4842, allocations: 231 kB / 1.256 GB, free: 4.828 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.424e-05/0.4843, allocations: 24 kB / 1.256 GB, free: 4.805 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00155/0.4858, allocations: 0.8767 MB / 1.257 GB, free: 3.926 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.486, allocations: 107.7 kB / 1.257 GB, free: 3.82 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0002022/0.4862, allocations: 171.2 kB / 1.257 GB, free: 3.652 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.001305/0.4875, allocations: 0.7323 MB / 1.258 GB, free: 2.918 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.4876, allocations: 4 kB / 1.258 GB, free: 2.914 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.653e-06/0.4876, allocations: 0 / 1.258 GB, free: 2.914 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.584e-05/0.4876, allocations: 4 kB / 1.258 GB, free: 2.91 MB / 1.014 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.001128/0.4887, allocations: 0.6506 MB / 1.258 GB, free: 2.211 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.4888, allocations: 8.031 kB / 1.258 GB, free: 2.203 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001242/0.49, allocations: 159.3 kB / 1.259 GB, free: 2.047 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005765/0.4906, allocations: 330.6 kB / 1.259 GB, free: 1.684 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.4906, allocations: 20.56 kB / 1.259 GB, free: 1.66 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.855e-05/0.4907, allocations: 23.94 kB / 1.259 GB, free: 1.637 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004797/0.4912, allocations: 293.8 kB / 1.259 GB, free: 1.332 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.4912, allocations: 0 / 1.259 GB, free: 1.332 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.519e-05/0.4912, allocations: 8 kB / 1.259 GB, free: 1.324 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.4913, allocations: 4 kB / 1.259 GB, free: 1.32 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004243/0.4917, allocations: 208.7 kB / 1.259 GB, free: 1.117 MB / 1.014 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.703/1.195, allocations: 1.225 MB / 1.261 GB, free: 176.1 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/1.195, allocations: 152.4 kB / 1.261 GB, free: 176.1 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/1.195, allocations: 93.52 kB / 1.261 GB, free: 176.1 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006147/1.196, allocations: 303.2 kB / 1.261 GB, free: 175.8 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.683e-05/1.196, allocations: 35.5 kB / 1.261 GB, free: 175.8 MB / 1.014 GB Notification: Performance of pre-optimization done (n=17): time 2.615e-06/1.196, allocations: 0 / 1.261 GB, free: 175.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=17): time 0.0009852/1.197, allocations: 298.5 kB / 1.261 GB, free: 175.7 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/1.197, allocations: 57.8 kB / 1.262 GB, free: 175.7 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003899/1.197, allocations: 322.6 kB / 1.262 GB, free: 175.6 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/1.197, allocations: 30.23 kB / 1.262 GB, free: 175.5 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/1.198, allocations: 182.7 kB / 1.262 GB, free: 175.4 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.417e-05/1.198, allocations: 53.84 kB / 1.262 GB, free: 175.4 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/1.198, allocations: 52.41 kB / 1.262 GB, free: 175.4 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001113/1.198, allocations: 341.4 kB / 1.262 GB, free: 175.1 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002/1.198, allocations: 69.77 kB / 1.263 GB, free: 175.1 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/1.198, allocations: 121.1 kB / 1.263 GB, free: 175 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003847/1.199, allocations: 198 kB / 1.263 GB, free: 175 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/1.199, allocations: 3.188 kB / 1.263 GB, free: 175 MB / 1.014 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005527/1.199, allocations: 253 kB / 1.263 GB, free: 174.9 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/1.199, allocations: 10.45 kB / 1.263 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/1.199, allocations: 0.9062 kB / 1.263 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.597e-05/1.199, allocations: 2.875 kB / 1.263 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002389/1.2, allocations: 45.77 kB / 1.263 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/1.2, allocations: 5.594 kB / 1.263 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/1.2, allocations: 35.05 kB / 1.263 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.951e-05/1.2, allocations: 10.14 kB / 1.263 GB, free: 174.9 MB / 1.014 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002375/1.2, allocations: 155.3 kB / 1.263 GB, free: 174.8 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.732e-05/1.2, allocations: 30.66 kB / 1.263 GB, free: 174.8 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006221/1.201, allocations: 234 kB / 1.264 GB, free: 174.8 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/1.201, allocations: 2.188 kB / 1.264 GB, free: 174.8 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/1.201, allocations: 0.5156 kB / 1.264 GB, free: 174.8 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/1.201, allocations: 1.156 kB / 1.264 GB, free: 174.8 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001272/1.202, allocations: 0.7077 MB / 1.264 GB, free: 174.4 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/1.202, allocations: 2.312 kB / 1.264 GB, free: 174.4 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/1.202, allocations: 42.8 kB / 1.264 GB, free: 174.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/1.202, allocations: 3.438 kB / 1.264 GB, free: 174.4 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.163e-05/1.202, allocations: 3.875 kB / 1.264 GB, free: 174.4 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/1.202, allocations: 8.828 kB / 1.264 GB, free: 174.4 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.202, allocations: 2.344 kB / 1.264 GB, free: 174.4 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000702/1.203, allocations: 459.2 kB / 1.265 GB, free: 174.2 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/1.203, allocations: 127.2 kB / 1.265 GB, free: 174 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.377e-05/1.203, allocations: 3.719 kB / 1.265 GB, free: 174 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/1.203, allocations: 12.27 kB / 1.265 GB, free: 174 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.959e-05/1.204, allocations: 21.91 kB / 1.265 GB, free: 174 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/1.204, allocations: 10.19 kB / 1.265 GB, free: 174 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0002662/1.204, allocations: 231 kB / 1.265 GB, free: 173.9 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.1e-07/1.204, allocations: 0 / 1.265 GB, free: 173.9 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0004647/1.204, allocations: 84.62 kB / 1.265 GB, free: 173.9 MB / 1.014 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 (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.0004354/1.205, allocations: 160.2 kB / 1.265 GB, free: 173.8 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004953/1.205, allocations: 193 kB / 1.266 GB, free: 173.8 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/1.205, allocations: 0.8438 kB / 1.266 GB, free: 173.8 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002246/1.206, allocations: 89.59 kB / 1.266 GB, free: 173.7 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009094/1.206, allocations: 170.2 kB / 1.266 GB, free: 173.7 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/1.208, allocations: 0.6321 MB / 1.266 GB, free: 173.3 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/1.208, allocations: 0.7828 MB / 1.267 GB, free: 172.6 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002469/1.208, allocations: 64.23 kB / 1.267 GB, free: 172.6 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.921e-05/1.208, allocations: 29.75 kB / 1.267 GB, free: 172.6 MB / 1.014 GB Notification: Performance of SimCode: time 4.41e-07/1.208, allocations: 0 / 1.267 GB, free: 172.6 MB / 1.014 GB Notification: Performance of Templates: time 0.01651/1.225, allocations: 5.834 MB / 1.273 GB, free: 172.3 MB / 1.014 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches