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.001127/0.001127, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00111/0.001111, allocations: 195.6 kB / 16.53 MB, free: 6.391 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.416/1.416, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.428/2.428, allocations: 390.2 MB / 0.6647 GB, free: 448 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001223, allocations: 67.89 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8209/0.8221, allocations: 140.4 MB / 0.9496 GB, free: 9.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.2192/1.041, allocations: 167.4 MB / 1.113 GB, free: 9.82 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.003008/1.044, allocations: 1.551 MB / 1.115 GB, free: 8.266 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003654/1.045, allocations: 11.94 kB / 1.115 GB, free: 8.254 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0005446/1.045, allocations: 146.8 kB / 1.115 GB, free: 8.109 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001878/1.047, allocations: 0.7117 MB / 1.115 GB, free: 7.395 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001768/1.049, allocations: 0.5954 MB / 1.116 GB, free: 6.801 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0009555/1.05, allocations: 0.7254 MB / 1.117 GB, free: 6.07 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004081/1.05, allocations: 233.1 kB / 1.117 GB, free: 5.84 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007961/1.051, allocations: 350.6 kB / 1.117 GB, free: 5.496 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000311/1.052, allocations: 231 kB / 1.117 GB, free: 5.27 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 4.853e-05/1.052, allocations: 24 kB / 1.118 GB, free: 5.246 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001805/1.053, allocations: 0.8572 MB / 1.118 GB, free: 4.387 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001526/1.054, allocations: 115.6 kB / 1.118 GB, free: 4.273 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0001917/1.054, allocations: 171.1 kB / 1.119 GB, free: 4.105 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001179/1.055, allocations: 0.7207 MB / 1.119 GB, free: 3.383 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/1.055, allocations: 4 kB / 1.119 GB, free: 3.379 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.195e-06/1.055, allocations: 0 / 1.119 GB, free: 3.379 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 7.223e-06/1.055, allocations: 0 / 1.119 GB, free: 3.379 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.001046/1.056, allocations: 0.6699 MB / 1.12 GB, free: 2.66 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/1.056, allocations: 8.031 kB / 1.12 GB, free: 2.652 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001176/1.057, allocations: 155.5 kB / 1.12 GB, free: 2.5 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005195/1.058, allocations: 310.6 kB / 1.12 GB, free: 2.156 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.259e-05/1.058, allocations: 20.56 kB / 1.12 GB, free: 2.133 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.582e-05/1.058, allocations: 27.92 kB / 1.12 GB, free: 2.105 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/1.058, allocations: 281.8 kB / 1.121 GB, free: 1.812 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/1.058, allocations: 0 / 1.121 GB, free: 1.812 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.616e-05/1.059, allocations: 12 kB / 1.121 GB, free: 1.801 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/1.059, allocations: 8 kB / 1.121 GB, free: 1.793 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004253/1.059, allocations: 208.7 kB / 1.121 GB, free: 1.59 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.001492/1.06, allocations: 1.23 MB / 1.122 GB, free: 260 kB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003197/1.061, allocations: 154.4 kB / 1.122 GB, free: 96 kB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/1.061, allocations: 88.81 kB / 1.122 GB, free: 4 kB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007712/1.062, allocations: 307.2 kB / 1.123 GB, free: 15.65 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/1.062, allocations: 34.56 kB / 1.123 GB, free: 15.61 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=17): time 1.894e-06/1.062, allocations: 0 / 1.123 GB, free: 15.61 MB / 0.8887 GB Notification: Performance of matching and sorting (n=17): time 0.0008444/1.063, allocations: 299.7 kB / 1.123 GB, free: 15.31 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/1.063, allocations: 51.41 kB / 1.123 GB, free: 15.25 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003635/1.063, allocations: 320.5 kB / 1.123 GB, free: 14.93 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/1.063, allocations: 29.7 kB / 1.123 GB, free: 14.89 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/1.063, allocations: 180.2 kB / 1.124 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 5.62e-05/1.063, allocations: 67.08 kB / 1.124 GB, free: 14.65 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.607e-05/1.063, allocations: 45.7 kB / 1.124 GB, free: 14.6 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001548/1.064, allocations: 342.8 kB / 1.124 GB, free: 14.25 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/1.064, allocations: 67.95 kB / 1.124 GB, free: 14.19 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002314/1.064, allocations: 130.6 kB / 1.124 GB, free: 14.04 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003823/1.064, allocations: 203.3 kB / 1.124 GB, free: 13.83 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/1.064, allocations: 3.938 kB / 1.124 GB, free: 13.82 MB / 0.8887 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004947/1.065, allocations: 253 kB / 1.125 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/1.065, allocations: 8 kB / 1.125 GB, free: 13.56 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/1.065, allocations: 4.094 kB / 1.125 GB, free: 13.56 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/1.065, allocations: 4 kB / 1.125 GB, free: 13.55 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002431/1.065, allocations: 47.91 kB / 1.125 GB, free: 13.51 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/1.065, allocations: 0 / 1.125 GB, free: 13.51 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/1.066, allocations: 39.61 kB / 1.125 GB, free: 13.47 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.386e-05/1.066, allocations: 12 kB / 1.125 GB, free: 13.46 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.000186/1.066, allocations: 150.2 kB / 1.125 GB, free: 13.3 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.946e-05/1.066, allocations: 35.75 kB / 1.125 GB, free: 13.27 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005225/1.066, allocations: 242.5 kB / 1.125 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/1.066, allocations: 0 / 1.125 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/1.066, allocations: 0 / 1.125 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/1.066, allocations: 0 / 1.125 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/1.068, allocations: 0.7107 MB / 1.126 GB, free: 12.23 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/1.068, allocations: 4 kB / 1.126 GB, free: 12.23 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/1.068, allocations: 35.91 kB / 1.126 GB, free: 12.2 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/1.068, allocations: 4 kB / 1.126 GB, free: 12.19 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.393e-05/1.068, allocations: 12.22 kB / 1.126 GB, free: 12.18 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/1.068, allocations: 7.938 kB / 1.126 GB, free: 12.17 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/1.068, allocations: 0 / 1.126 GB, free: 12.17 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000705/1.069, allocations: 441 kB / 1.126 GB, free: 11.7 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/1.069, allocations: 124.7 kB / 1.126 GB, free: 11.56 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.754e-05/1.069, allocations: 8 kB / 1.126 GB, free: 11.55 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/1.069, allocations: 7.938 kB / 1.126 GB, free: 11.55 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.222e-05/1.069, allocations: 24.03 kB / 1.126 GB, free: 11.52 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/1.069, allocations: 8 kB / 1.126 GB, free: 11.52 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0002595/1.069, allocations: 235 kB / 1.127 GB, free: 11.29 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.4e-07/1.069, allocations: 0 / 1.127 GB, free: 11.29 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0004545/1.07, allocations: 83.84 kB / 1.127 GB, free: 11.2 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.0005377/1.07, allocations: 176.3 kB / 1.127 GB, free: 11.03 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0005215/1.071, allocations: 195.6 kB / 1.127 GB, free: 10.84 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/1.071, allocations: 0 / 1.127 GB, free: 10.84 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0002353/1.071, allocations: 88.52 kB / 1.127 GB, free: 10.75 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009501/1.072, allocations: 169 kB / 1.127 GB, free: 10.59 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/1.073, allocations: 0.6336 MB / 1.128 GB, free: 9.906 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004074/1.074, allocations: 0.7871 MB / 1.129 GB, free: 9.094 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002378/1.074, allocations: 62.94 kB / 1.129 GB, free: 9.035 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.591e-05/1.074, allocations: 27.44 kB / 1.129 GB, free: 9.008 MB / 0.8887 GB Notification: Performance of SimCode: time 1.9e-07/1.074, allocations: 0 / 1.129 GB, free: 9.008 MB / 0.8887 GB Notification: Performance of Templates: time 0.01186/1.086, allocations: 5.806 MB / 1.135 GB, free: 3.305 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