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.006975/0.006975, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.001595/0.001596, allocations: 191.2 kB / 16.67 MB, free: 5.98 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.409/2.409, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001448, allocations: 63.94 kB / 0.9509 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2963, allocations: 140.4 MB / 1.088 GB, free: 1.633 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.1873/0.4837, allocations: 167.4 MB / 1.251 GB, free: 9.578 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002857/0.4866, allocations: 1.555 MB / 1.253 GB, free: 8.02 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004216/0.487, allocations: 15.88 kB / 1.253 GB, free: 8.004 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0005224/0.4876, allocations: 146.9 kB / 1.253 GB, free: 7.859 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.001725/0.4894, allocations: 0.7078 MB / 1.254 GB, free: 7.148 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001578/0.491, allocations: 0.6062 MB / 1.254 GB, free: 6.543 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0009993/0.492, allocations: 0.7215 MB / 1.255 GB, free: 5.82 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004708/0.4925, allocations: 237 kB / 1.255 GB, free: 5.586 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007396/0.4932, allocations: 342.7 kB / 1.256 GB, free: 5.25 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003611/0.4936, allocations: 231 kB / 1.256 GB, free: 5.023 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.341e-05/0.4936, allocations: 24 kB / 1.256 GB, free: 5 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001468/0.4951, allocations: 0.865 MB / 1.257 GB, free: 4.133 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.4953, allocations: 107.7 kB / 1.257 GB, free: 4.027 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0002241/0.4955, allocations: 171.2 kB / 1.257 GB, free: 3.859 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.001192/0.4967, allocations: 0.7323 MB / 1.258 GB, free: 3.125 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.4967, allocations: 4 kB / 1.258 GB, free: 3.121 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.363e-06/0.4967, allocations: 0 / 1.258 GB, free: 3.121 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.4968, allocations: 0 / 1.258 GB, free: 3.121 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.001096/0.4979, allocations: 0.6623 MB / 1.258 GB, free: 2.41 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.4979, allocations: 8.031 kB / 1.258 GB, free: 2.402 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001221/0.4991, allocations: 159.3 kB / 1.259 GB, free: 2.246 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005929/0.4997, allocations: 330.6 kB / 1.259 GB, free: 1.883 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.4998, allocations: 16.56 kB / 1.259 GB, free: 1.863 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.334e-05/0.4998, allocations: 27.94 kB / 1.259 GB, free: 1.836 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005051/0.5003, allocations: 293.8 kB / 1.259 GB, free: 1.531 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.5004, allocations: 0 / 1.259 GB, free: 1.531 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.5004, allocations: 11.98 kB / 1.259 GB, free: 1.52 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.5004, allocations: 8 kB / 1.259 GB, free: 1.512 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000424/0.5008, allocations: 204.7 kB / 1.259 GB, free: 1.312 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.6456/1.146, allocations: 1.218 MB / 1.261 GB, free: 176.6 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004586/1.147, allocations: 146.9 kB / 1.261 GB, free: 176.6 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/1.147, allocations: 93.58 kB / 1.261 GB, free: 176.6 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005896/1.148, allocations: 309.4 kB / 1.261 GB, free: 176.3 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/1.148, allocations: 32.38 kB / 1.261 GB, free: 176.2 MB / 1.014 GB Notification: Performance of pre-optimization done (n=17): time 2.645e-06/1.148, allocations: 0 / 1.261 GB, free: 176.2 MB / 1.014 GB Notification: Performance of matching and sorting (n=17): time 0.0009632/1.149, allocations: 295.8 kB / 1.261 GB, free: 176.2 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.906e-05/1.149, allocations: 55.53 kB / 1.261 GB, free: 176.1 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004116/1.149, allocations: 327.1 kB / 1.262 GB, free: 176 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/1.149, allocations: 29.95 kB / 1.262 GB, free: 176 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/1.149, allocations: 185.3 kB / 1.262 GB, free: 175.9 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.505e-05/1.149, allocations: 57.47 kB / 1.262 GB, free: 175.9 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.097e-05/1.15, allocations: 45.48 kB / 1.262 GB, free: 175.9 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 7.566e-05/1.15, allocations: 339.8 kB / 1.262 GB, free: 175.6 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/1.15, allocations: 69.16 kB / 1.262 GB, free: 175.6 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/1.15, allocations: 126 kB / 1.263 GB, free: 175.5 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003833/1.15, allocations: 202.7 kB / 1.263 GB, free: 175.5 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/1.15, allocations: 2.078 kB / 1.263 GB, free: 175.5 MB / 1.014 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000544/1.151, allocations: 251 kB / 1.263 GB, free: 175.4 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/1.151, allocations: 6.188 kB / 1.263 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/1.151, allocations: 3.359 kB / 1.263 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/1.151, allocations: 4.125 kB / 1.263 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002405/1.151, allocations: 47.19 kB / 1.263 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/1.151, allocations: 2.984 kB / 1.263 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002213/1.152, allocations: 29.72 kB / 1.263 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-05/1.152, allocations: 15.28 kB / 1.263 GB, free: 175.4 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.0001338/1.152, allocations: 153.2 kB / 1.263 GB, free: 175.3 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.806e-05/1.152, allocations: 30.88 kB / 1.263 GB, free: 175.3 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005424/1.152, allocations: 233.3 kB / 1.264 GB, free: 175.2 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/1.152, allocations: 1.25 kB / 1.264 GB, free: 175.2 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/1.152, allocations: 0.8125 kB / 1.264 GB, free: 175.2 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/1.152, allocations: 2.906 kB / 1.264 GB, free: 175.2 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/1.154, allocations: 0.7062 MB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/1.154, allocations: 6.469 kB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001886/1.154, allocations: 39.2 kB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/1.154, allocations: 4.75 kB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/1.154, allocations: 11.45 kB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/1.154, allocations: 3.781 kB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/1.154, allocations: 2.281 kB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006819/1.155, allocations: 448.2 kB / 1.265 GB, free: 174.6 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/1.155, allocations: 130 kB / 1.265 GB, free: 174.5 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.563e-05/1.155, allocations: 8.875 kB / 1.265 GB, free: 174.5 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/1.155, allocations: 10.62 kB / 1.265 GB, free: 174.5 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/1.155, allocations: 19.55 kB / 1.265 GB, free: 174.5 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/1.155, allocations: 5.719 kB / 1.265 GB, free: 174.5 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0002464/1.155, allocations: 230.5 kB / 1.265 GB, free: 174.4 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.5e-07/1.155, allocations: 0 / 1.265 GB, free: 174.4 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.000429/1.156, allocations: 85.72 kB / 1.265 GB, free: 174.4 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.0003871/1.156, allocations: 171.6 kB / 1.265 GB, free: 174.3 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.000496/1.157, allocations: 184 kB / 1.266 GB, free: 174.2 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/1.157, allocations: 0 / 1.266 GB, free: 174.2 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002127/1.157, allocations: 95.84 kB / 1.266 GB, free: 174.2 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009323/1.158, allocations: 166.2 kB / 1.266 GB, free: 174.1 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/1.159, allocations: 0.6325 MB / 1.266 GB, free: 173.8 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/1.159, allocations: 0.7861 MB / 1.267 GB, free: 173.1 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002287/1.159, allocations: 65.53 kB / 1.267 GB, free: 173.1 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.7e-05/1.159, allocations: 25.7 kB / 1.267 GB, free: 173 MB / 1.014 GB Notification: Performance of SimCode: time 5.01e-07/1.159, allocations: 4 kB / 1.267 GB, free: 173 MB / 1.014 GB Notification: Performance of Templates: time 0.01475/1.174, allocations: 5.838 MB / 1.273 GB, free: 172.7 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