Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Velocity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.v|senSteSta.v",fileNamePrefix="Buildings_latest_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_latest_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.00167/0.00167, allocations: 108 kB / 16.27 MB, free: 6.406 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.001648/0.001648, allocations: 190.8 kB / 17.2 MB, free: 5.973 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.392/1.392, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.72/2.72, allocations: 482.4 MB / 0.7553 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001924, allocations: 64.23 kB / 0.9245 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7319/0.7339, allocations: 162.2 MB / 1.083 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.2034/0.9373, allocations: 167.4 MB / 1.246 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003451/0.9408, allocations: 1.569 MB / 1.248 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003648/0.9412, allocations: 11.94 kB / 1.248 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005386/0.9417, allocations: 150.8 kB / 1.248 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001868/0.9437, allocations: 0.7039 MB / 1.249 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001596/0.9453, allocations: 0.5983 MB / 1.249 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000858/0.9461, allocations: 0.7099 MB / 1.25 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003988/0.9465, allocations: 241 kB / 1.25 GB, free: 2.961 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001031/0.9476, allocations: 494.2 kB / 1.251 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003153/0.9479, allocations: 223 kB / 1.251 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.768e-05/0.948, allocations: 20 kB / 1.251 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001638/0.9496, allocations: 0.8612 MB / 1.252 GB, free: 1.375 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.9498, allocations: 107.7 kB / 1.252 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002119/0.95, allocations: 171.2 kB / 1.252 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.9512, allocations: 0.7207 MB / 1.253 GB, free: 388 kB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.9512, allocations: 0 / 1.253 GB, free: 388 kB / 0.9669 GB Notification: Performance of FrontEnd: time 3.507e-06/0.9512, allocations: 4 kB / 1.253 GB, free: 384 kB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.682e-06/0.9512, allocations: 3.938 kB / 1.253 GB, free: 380 kB / 0.9669 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.001091/0.9523, allocations: 0.6545 MB / 1.253 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.9524, allocations: 12.03 kB / 1.253 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/0.9536, allocations: 159.3 kB / 1.254 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004636/0.954, allocations: 310.7 kB / 1.254 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.9541, allocations: 20.56 kB / 1.254 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.618e-05/0.9541, allocations: 23.94 kB / 1.254 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005379/0.9547, allocations: 289.8 kB / 1.254 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.9547, allocations: 0 / 1.254 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.9547, allocations: 11.94 kB / 1.254 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.9547, allocations: 8 kB / 1.254 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004522/0.9552, allocations: 200.9 kB / 1.254 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.9568, allocations: 1.227 MB / 1.256 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003057/0.9571, allocations: 154.4 kB / 1.256 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/0.9573, allocations: 93.11 kB / 1.256 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000673/0.958, allocations: 303.2 kB / 1.256 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.958, allocations: 42.47 kB / 1.256 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=17): time 1.392e-06/0.9581, allocations: 0 / 1.256 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of matching and sorting (n=17): time 0.0008487/0.9589, allocations: 291.8 kB / 1.256 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.959, allocations: 55.34 kB / 1.257 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000362/0.9593, allocations: 324.5 kB / 1.257 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.411e-05/0.9594, allocations: 29.7 kB / 1.257 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.9595, allocations: 184.2 kB / 1.257 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.082e-05/0.9596, allocations: 55.11 kB / 1.257 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.531e-05/0.9597, allocations: 49.7 kB / 1.257 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001722/0.9599, allocations: 346.7 kB / 1.257 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000185/0.9601, allocations: 67.95 kB / 1.258 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002389/0.9603, allocations: 127.1 kB / 1.258 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000396/0.9607, allocations: 197 kB / 1.258 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.9607, allocations: 7.938 kB / 1.258 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005149/0.9613, allocations: 251.8 kB / 1.258 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.9613, allocations: 4 kB / 1.258 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.9613, allocations: 0 / 1.258 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.9613, allocations: 7.938 kB / 1.258 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.9616, allocations: 47.97 kB / 1.258 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.9616, allocations: 0 / 1.258 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002176/0.9618, allocations: 39.77 kB / 1.258 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.185e-05/0.9618, allocations: 12 kB / 1.258 GB, free: 10.46 MB / 0.9825 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.0001652/0.962, allocations: 149.7 kB / 1.258 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.674e-05/0.9621, allocations: 31.62 kB / 1.258 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000523/0.9626, allocations: 232.7 kB / 1.259 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.9626, allocations: 0 / 1.259 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.9626, allocations: 4.141 kB / 1.259 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.9627, allocations: 3.984 kB / 1.259 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.9638, allocations: 0.7106 MB / 1.259 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.9638, allocations: 4 kB / 1.259 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.964, allocations: 31.98 kB / 1.259 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.964, allocations: 4 kB / 1.259 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.9641, allocations: 7.984 kB / 1.259 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.107e-06/0.9641, allocations: 7.938 kB / 1.259 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.9641, allocations: 3.938 kB / 1.259 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007369/0.9648, allocations: 455.9 kB / 1.26 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.965, allocations: 120.8 kB / 1.26 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.573e-05/0.965, allocations: 7.984 kB / 1.26 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.9652, allocations: 11.94 kB / 1.26 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.208e-05/0.9653, allocations: 11.98 kB / 1.26 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.9653, allocations: 12 kB / 1.26 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002546/0.9655, allocations: 231.1 kB / 1.26 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9656, allocations: 0 / 1.26 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004083/0.966, allocations: 87.92 kB / 1.26 GB, free: 8.219 MB / 0.9825 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.0003947/0.9664, allocations: 172.7 kB / 1.26 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004794/0.9669, allocations: 187.7 kB / 1.261 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.9669, allocations: 0 / 1.261 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.9671, allocations: 95.81 kB / 1.261 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009037/0.968, allocations: 171.7 kB / 1.261 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.9691, allocations: 0.655 MB / 1.261 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004477/0.9696, allocations: 0.7832 MB / 1.262 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.545e-05/0.9697, allocations: 27.44 kB / 1.262 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.9697, allocations: 0 / 1.262 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of Templates: time 0.008372/0.9781, allocations: 4.941 MB / 1.267 GB, free: 1.172 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_Velocity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches