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.001368/0.001368, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001561/0.001561, allocations: 193.2 kB / 16.14 MB, free: 6.719 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.407/1.407, allocations: 222.9 MB / 239.8 MB, free: 4.602 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.433/2.433, allocations: 390.2 MB / 0.6642 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001244, allocations: 63.91 kB / 0.8118 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7954/0.7966, allocations: 140.4 MB / 0.9489 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.2059/1.003, allocations: 165.2 MB / 1.11 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.003289/1.006, allocations: 1.574 MB / 1.112 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005708/1.007, allocations: 11.94 kB / 1.112 GB, free: 10.75 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0006738/1.007, allocations: 115.2 kB / 1.112 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002239/1.01, allocations: 0.6652 MB / 1.113 GB, free: 9.973 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002047/1.012, allocations: 0.5566 MB / 1.113 GB, free: 9.418 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001504/1.013, allocations: 0.9867 MB / 1.114 GB, free: 8.426 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006771/1.014, allocations: 201.4 kB / 1.114 GB, free: 8.227 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00113/1.015, allocations: 322.7 kB / 1.115 GB, free: 7.91 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006465/1.016, allocations: 239 kB / 1.115 GB, free: 7.676 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 7.834e-05/1.016, allocations: 12 kB / 1.115 GB, free: 7.664 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002191/1.018, allocations: 1.017 MB / 1.116 GB, free: 6.645 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002037/1.018, allocations: 103.7 kB / 1.116 GB, free: 6.543 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002719/1.018, allocations: 151.2 kB / 1.116 GB, free: 6.395 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001821/1.02, allocations: 0.7751 MB / 1.117 GB, free: 5.617 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/1.02, allocations: 4 kB / 1.117 GB, free: 5.613 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.452e-06/1.02, allocations: 0 / 1.117 GB, free: 5.613 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.61e-05/1.02, allocations: 0 / 1.117 GB, free: 5.613 MB / 0.8731 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.001782/1.022, allocations: 0.6699 MB / 1.117 GB, free: 4.895 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/1.022, allocations: 8.031 kB / 1.117 GB, free: 4.887 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001524/1.024, allocations: 155.4 kB / 1.118 GB, free: 4.734 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006077/1.024, allocations: 314.6 kB / 1.118 GB, free: 4.387 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/1.024, allocations: 20.5 kB / 1.118 GB, free: 4.367 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.41e-05/1.024, allocations: 31.88 kB / 1.118 GB, free: 4.336 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006078/1.025, allocations: 277.9 kB / 1.118 GB, free: 4.043 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/1.025, allocations: 0 / 1.118 GB, free: 4.043 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/1.025, allocations: 12 kB / 1.118 GB, free: 4.031 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/1.025, allocations: 8 kB / 1.118 GB, free: 4.023 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004897/1.026, allocations: 208.6 kB / 1.118 GB, free: 3.82 MB / 0.8731 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.002004/1.028, allocations: 1.219 MB / 1.12 GB, free: 2.496 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003386/1.028, allocations: 156.1 kB / 1.12 GB, free: 2.336 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002002/1.028, allocations: 96.8 kB / 1.12 GB, free: 2.238 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007344/1.029, allocations: 307.2 kB / 1.12 GB, free: 1.883 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/1.029, allocations: 38.56 kB / 1.12 GB, free: 1.836 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=17): time 1.523e-06/1.029, allocations: 0 / 1.12 GB, free: 1.836 MB / 0.8731 GB Notification: Performance of matching and sorting (n=17): time 0.0008592/1.03, allocations: 289.4 kB / 1.12 GB, free: 1.547 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/1.03, allocations: 51.41 kB / 1.12 GB, free: 1.484 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004499/1.03, allocations: 324.5 kB / 1.121 GB, free: 1.16 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/1.03, allocations: 29.7 kB / 1.121 GB, free: 1.125 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002176/1.031, allocations: 184.2 kB / 1.121 GB, free: 0.9414 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.796e-05/1.031, allocations: 59.09 kB / 1.121 GB, free: 0.8828 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/1.031, allocations: 45.7 kB / 1.121 GB, free: 0.832 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002313/1.031, allocations: 342.8 kB / 1.121 GB, free: 500 kB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003358/1.031, allocations: 67.95 kB / 1.121 GB, free: 432 kB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002277/1.032, allocations: 134.5 kB / 1.122 GB, free: 280 kB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003728/1.032, allocations: 199.8 kB / 1.122 GB, free: 64 kB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/1.032, allocations: 3.938 kB / 1.122 GB, free: 60 kB / 0.8731 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006278/1.033, allocations: 253 kB / 1.122 GB, free: 15.8 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/1.033, allocations: 5.562 kB / 1.122 GB, free: 15.8 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/1.033, allocations: 0 / 1.122 GB, free: 15.8 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002401/1.033, allocations: 4 kB / 1.122 GB, free: 15.8 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002418/1.033, allocations: 52 kB / 1.122 GB, free: 15.75 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/1.033, allocations: 0 / 1.122 GB, free: 15.75 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003108/1.034, allocations: 39.67 kB / 1.122 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.474e-05/1.034, allocations: 4 kB / 1.122 GB, free: 15.7 MB / 0.8887 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.0002023/1.034, allocations: 161.7 kB / 1.122 GB, free: 15.54 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.766e-05/1.034, allocations: 31.62 kB / 1.122 GB, free: 15.5 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005218/1.035, allocations: 232.6 kB / 1.123 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/1.035, allocations: 4 kB / 1.123 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/1.035, allocations: 0 / 1.123 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/1.035, allocations: 0 / 1.123 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/1.036, allocations: 0.7146 MB / 1.123 GB, free: 14.47 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/1.036, allocations: 0 / 1.123 GB, free: 14.47 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001742/1.036, allocations: 39.91 kB / 1.123 GB, free: 14.43 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.039e-05/1.036, allocations: 7.984 kB / 1.123 GB, free: 14.43 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.945e-05/1.036, allocations: 12.16 kB / 1.123 GB, free: 14.41 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/1.036, allocations: 7.938 kB / 1.123 GB, free: 14.41 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.036, allocations: 4 kB / 1.123 GB, free: 14.4 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009216/1.037, allocations: 442.5 kB / 1.124 GB, free: 13.93 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/1.037, allocations: 124.7 kB / 1.124 GB, free: 13.79 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.917e-05/1.037, allocations: 8 kB / 1.124 GB, free: 13.79 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/1.037, allocations: 23.92 kB / 1.124 GB, free: 13.76 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.938e-05/1.037, allocations: 15.92 kB / 1.124 GB, free: 13.75 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/1.037, allocations: 8 kB / 1.124 GB, free: 13.74 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0002464/1.038, allocations: 231 kB / 1.124 GB, free: 13.51 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/1.038, allocations: 0 / 1.124 GB, free: 13.51 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0004272/1.038, allocations: 83.91 kB / 1.124 GB, free: 13.43 MB / 0.8887 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.0004593/1.039, allocations: 168.8 kB / 1.124 GB, free: 13.26 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0004568/1.039, allocations: 179.7 kB / 1.125 GB, free: 13.09 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/1.039, allocations: 0 / 1.125 GB, free: 13.09 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0002069/1.039, allocations: 96.42 kB / 1.125 GB, free: 12.99 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009085/1.04, allocations: 157.8 kB / 1.125 GB, free: 12.84 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/1.041, allocations: 0.7329 MB / 1.126 GB, free: 12.05 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005274/1.042, allocations: 0.7836 MB / 1.126 GB, free: 11.24 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002511/1.042, allocations: 62.92 kB / 1.126 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.287e-05/1.042, allocations: 27.44 kB / 1.126 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of SimCode: time 2.5e-07/1.042, allocations: 0 / 1.126 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of Templates: time 0.01167/1.054, allocations: 5.534 MB / 1.132 GB, free: 5.719 MB / 0.8887 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