Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.VolumeFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.V_flow|senSteSta.V_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate") translateModel(Buildings.Fluid.Sensors.Examples.VolumeFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.V_flow|senSteSta.V_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001476/0.001481, allocations: 100.1 kB / 15.88 MB, free: 12 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.00181/0.00181, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.439/1.439, allocations: 222.9 MB / 240.5 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.846/2.846, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 69.12 kB / 0.899 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3251, allocations: 157.4 MB / 1.053 GB, free: 8.309 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.VolumeFlowRate): time 0.1923/0.5175, allocations: 165.1 MB / 1.214 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002966/0.5205, allocations: 1.555 MB / 1.216 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005534/0.5211, allocations: 11.94 kB / 1.216 GB, free: 0.9961 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0006628/0.5218, allocations: 127.2 kB / 1.216 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002025/0.5239, allocations: 0.6575 MB / 1.216 GB, free: 216 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00189/0.5258, allocations: 0.544 MB / 1.217 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001309/0.5271, allocations: 0.9703 MB / 1.218 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004637/0.5276, allocations: 197.2 kB / 1.218 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008395/0.5285, allocations: 314.7 kB / 1.218 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004734/0.529, allocations: 239 kB / 1.218 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.279e-05/0.529, allocations: 12 kB / 1.218 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002054/0.5311, allocations: 1.013 MB / 1.219 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.5313, allocations: 99.7 kB / 1.22 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002632/0.5316, allocations: 155.2 kB / 1.22 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0009843/0.5326, allocations: 0.5068 MB / 1.22 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.5326, allocations: 0 / 1.22 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.373e-06/0.5326, allocations: 0 / 1.22 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.18e-05/0.5326, allocations: 0 / 1.22 GB, free: 12.18 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001254/0.5339, allocations: 0.6426 MB / 1.221 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.5339, allocations: 12.03 kB / 1.221 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001307/0.5352, allocations: 155.4 kB / 1.221 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004942/0.5358, allocations: 305.7 kB / 1.221 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.5358, allocations: 16.44 kB / 1.221 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.04e-05/0.5358, allocations: 24 kB / 1.221 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005399/0.5364, allocations: 283.4 kB / 1.222 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.5364, allocations: 0 / 1.222 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.5364, allocations: 8 kB / 1.222 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.954e-06/0.5365, allocations: 4 kB / 1.222 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004331/0.5369, allocations: 195.8 kB / 1.222 GB, free: 10.44 MB / 0.9825 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.001574/0.5385, allocations: 1.213 MB / 1.223 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.5388, allocations: 138.4 kB / 1.223 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.539, allocations: 92.81 kB / 1.223 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006251/0.5396, allocations: 307.2 kB / 1.224 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.5397, allocations: 38.5 kB / 1.224 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 2.174e-06/0.5397, allocations: 0 / 1.224 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.0008186/0.5405, allocations: 283.9 kB / 1.224 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.5406, allocations: 51.41 kB / 1.224 GB, free: 8.137 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/0.5409, allocations: 316.5 kB / 1.224 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.957e-05/0.5409, allocations: 29.7 kB / 1.224 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.5411, allocations: 188.1 kB / 1.224 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.546e-05/0.5411, allocations: 47.27 kB / 1.224 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.683e-05/0.5412, allocations: 45.7 kB / 1.224 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.5414, allocations: 334.8 kB / 1.225 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.5416, allocations: 67.95 kB / 1.225 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.5418, allocations: 125.6 kB / 1.225 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003506/0.5421, allocations: 195.5 kB / 1.225 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.5422, allocations: 7.938 kB / 1.225 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004818/0.5426, allocations: 237.1 kB / 1.225 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.5427, allocations: 8 kB / 1.225 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.5427, allocations: 3.938 kB / 1.225 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.5427, allocations: 4 kB / 1.225 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.5429, allocations: 43.97 kB / 1.225 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.5429, allocations: 0 / 1.225 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002397/0.5432, allocations: 39.77 kB / 1.225 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.445e-05/0.5432, allocations: 15.94 kB / 1.225 GB, free: 6.387 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 (22): * Single equations (assignments): 22 * 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.0001582/0.5434, allocations: 145.8 kB / 1.226 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.017e-05/0.5435, allocations: 27.72 kB / 1.226 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004695/0.5439, allocations: 224.2 kB / 1.226 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.5439, allocations: 0 / 1.226 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.544, allocations: 0 / 1.226 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.544, allocations: 3.984 kB / 1.226 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.545, allocations: 0.6874 MB / 1.227 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.5451, allocations: 0 / 1.227 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.5452, allocations: 31.92 kB / 1.227 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.15e-05/0.5453, allocations: 7.938 kB / 1.227 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/0.5453, allocations: 8 kB / 1.227 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.5453, allocations: 4 kB / 1.227 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.5453, allocations: 4.203 kB / 1.227 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006634/0.546, allocations: 433 kB / 1.227 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001438/0.5461, allocations: 120.7 kB / 1.227 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.689e-05/0.5462, allocations: 11.94 kB / 1.227 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.5464, allocations: 15.98 kB / 1.227 GB, free: 4.535 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.5464, allocations: 16.05 kB / 1.227 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.5465, allocations: 7.938 kB / 1.227 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002228/0.5467, allocations: 231 kB / 1.227 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5467, allocations: 0 / 1.227 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004303/0.5471, allocations: 83.94 kB / 1.227 GB, free: 4.203 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 (15): * Single equations (assignments): 15 * 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.0004641/0.5476, allocations: 165.4 kB / 1.228 GB, free: 4.039 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004516/0.5481, allocations: 163.8 kB / 1.228 GB, free: 3.879 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5481, allocations: 3.938 kB / 1.228 GB, free: 3.875 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.5483, allocations: 92.44 kB / 1.228 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009407/0.5492, allocations: 154.9 kB / 1.228 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.5504, allocations: 0.7254 MB / 1.229 GB, free: 2.852 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.5508, allocations: 0.7758 MB / 1.229 GB, free: 2.051 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.986e-05/0.5509, allocations: 23.44 kB / 1.23 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of SimCode: time 4.31e-07/0.5509, allocations: 0 / 1.23 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of Templates: time 0.008838/0.5598, allocations: 4.807 MB / 1.234 GB, free: 13.28 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_VolumeFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches