Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.VolumeFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.V_flow|senSteSta.V_flow",fileNamePrefix="Buildings_9_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_9_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.01023/0.01023, allocations: 98.16 kB / 15.73 MB, free: 6.496 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.002151/0.002151, allocations: 194.9 kB / 16.67 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.457/2.457, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 63.09 kB / 0.9509 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2716, allocations: 140.4 MB / 1.088 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.VolumeFlowRate): time 0.1854/0.457, allocations: 167.4 MB / 1.251 GB, free: 9.445 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.003085/0.4601, allocations: 1.543 MB / 1.253 GB, free: 7.898 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003549/0.4605, allocations: 11.94 kB / 1.253 GB, free: 7.887 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000605/0.4612, allocations: 154.9 kB / 1.253 GB, free: 7.734 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.001988/0.4632, allocations: 0.7351 MB / 1.254 GB, free: 6.996 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001667/0.4649, allocations: 0.6118 MB / 1.254 GB, free: 6.387 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0008013/0.4657, allocations: 0.7012 MB / 1.255 GB, free: 5.684 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003708/0.4661, allocations: 225.1 kB / 1.255 GB, free: 5.461 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005846/0.4667, allocations: 346.7 kB / 1.256 GB, free: 5.121 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002875/0.467, allocations: 211.1 kB / 1.256 GB, free: 4.914 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.077e-05/0.467, allocations: 24 kB / 1.256 GB, free: 4.891 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001524/0.4686, allocations: 0.8806 MB / 1.257 GB, free: 4.008 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001456/0.4687, allocations: 107.7 kB / 1.257 GB, free: 3.902 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001991/0.4689, allocations: 167.2 kB / 1.257 GB, free: 3.738 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.4701, allocations: 0.7242 MB / 1.258 GB, free: 3.012 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.4701, allocations: 4 kB / 1.258 GB, free: 3.008 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4701, allocations: 0 / 1.258 GB, free: 3.008 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.486e-06/0.4701, allocations: 0 / 1.258 GB, free: 3.008 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.00102/0.4711, allocations: 0.6615 MB / 1.258 GB, free: 2.297 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.4712, allocations: 15.97 kB / 1.258 GB, free: 2.281 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001202/0.4724, allocations: 151.6 kB / 1.258 GB, free: 2.133 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005397/0.4729, allocations: 321.9 kB / 1.259 GB, free: 1.781 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.473, allocations: 16.44 kB / 1.259 GB, free: 1.766 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.888e-05/0.473, allocations: 27.98 kB / 1.259 GB, free: 1.738 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004984/0.4735, allocations: 279.4 kB / 1.259 GB, free: 1.441 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.4736, allocations: 0 / 1.259 GB, free: 1.441 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.4736, allocations: 16 kB / 1.259 GB, free: 1.426 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.4736, allocations: 7.938 kB / 1.259 GB, free: 1.418 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004372/0.4741, allocations: 191.8 kB / 1.259 GB, free: 1.23 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.6252/1.099, allocations: 1.21 MB / 1.26 GB, free: 176.8 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003702/1.1, allocations: 131.6 kB / 1.261 GB, free: 176.8 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000194/1.1, allocations: 91.83 kB / 1.261 GB, free: 176.8 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005603/1.1, allocations: 303.1 kB / 1.261 GB, free: 176.5 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/1.101, allocations: 40.28 kB / 1.261 GB, free: 176.4 MB / 1.014 GB Notification: Performance of pre-optimization done (n=15): time 1.964e-06/1.101, allocations: 0 / 1.261 GB, free: 176.4 MB / 1.014 GB Notification: Performance of matching and sorting (n=15): time 0.0008686/1.101, allocations: 279.9 kB / 1.261 GB, free: 176.4 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.716e-05/1.101, allocations: 54.33 kB / 1.261 GB, free: 176.4 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003724/1.102, allocations: 315.7 kB / 1.262 GB, free: 176.2 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/1.102, allocations: 29.23 kB / 1.262 GB, free: 176.2 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/1.102, allocations: 184.9 kB / 1.262 GB, free: 176.1 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.788e-05/1.102, allocations: 57.61 kB / 1.262 GB, free: 176.1 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.289e-05/1.102, allocations: 45.52 kB / 1.262 GB, free: 176.1 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 8.231e-05/1.102, allocations: 340 kB / 1.262 GB, free: 175.8 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/1.102, allocations: 63.98 kB / 1.262 GB, free: 175.8 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/1.103, allocations: 129.8 kB / 1.262 GB, free: 175.7 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003768/1.103, allocations: 184 kB / 1.263 GB, free: 175.7 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/1.103, allocations: 1.031 kB / 1.263 GB, free: 175.7 MB / 1.014 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004777/1.103, allocations: 240.2 kB / 1.263 GB, free: 175.6 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/1.104, allocations: 10.12 kB / 1.263 GB, free: 175.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/1.104, allocations: 2.406 kB / 1.263 GB, free: 175.6 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/1.104, allocations: 6.828 kB / 1.263 GB, free: 175.6 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/1.104, allocations: 41.95 kB / 1.263 GB, free: 175.6 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/1.104, allocations: 2.734 kB / 1.263 GB, free: 175.6 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/1.104, allocations: 31.44 kB / 1.263 GB, free: 175.6 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.147e-05/1.104, allocations: 12.97 kB / 1.263 GB, free: 175.6 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 (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.0001234/1.104, allocations: 152.4 kB / 1.263 GB, free: 175.5 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.468e-05/1.104, allocations: 29.38 kB / 1.263 GB, free: 175.5 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004828/1.105, allocations: 224.1 kB / 1.263 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/1.105, allocations: 2.547 kB / 1.263 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/1.105, allocations: 4.781 kB / 1.263 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/1.105, allocations: 1.125 kB / 1.263 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/1.106, allocations: 0.6865 MB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/1.106, allocations: 8.453 kB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/1.106, allocations: 29.39 kB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.94e-06/1.106, allocations: 2.219 kB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/1.106, allocations: 7.922 kB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/1.106, allocations: 7.359 kB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.106, allocations: 1.875 kB / 1.264 GB, free: 174.9 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000629/1.107, allocations: 443.2 kB / 1.264 GB, free: 174.6 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/1.107, allocations: 123.4 kB / 1.265 GB, free: 174.5 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.657e-05/1.107, allocations: 4.5 kB / 1.265 GB, free: 174.5 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/1.107, allocations: 11.91 kB / 1.265 GB, free: 174.5 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.547e-05/1.107, allocations: 19.05 kB / 1.265 GB, free: 174.5 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/1.107, allocations: 8.844 kB / 1.265 GB, free: 174.5 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0002182/1.107, allocations: 222 kB / 1.265 GB, free: 174.4 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/1.107, allocations: 0.5312 kB / 1.265 GB, free: 174.4 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.000423/1.108, allocations: 84.38 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 (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.0003723/1.108, allocations: 170.3 kB / 1.265 GB, free: 174.3 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.000464/1.109, allocations: 167.5 kB / 1.265 GB, free: 174.2 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/1.109, allocations: 0.875 kB / 1.265 GB, free: 174.2 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002021/1.109, allocations: 90.36 kB / 1.265 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.0009313/1.11, allocations: 172.8 kB / 1.266 GB, free: 174.2 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009009/1.111, allocations: 0.6059 MB / 1.266 GB, free: 173.8 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/1.111, allocations: 0.7776 MB / 1.267 GB, free: 173.1 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002084/1.111, allocations: 66.69 kB / 1.267 GB, free: 173.1 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.289e-05/1.111, allocations: 25.36 kB / 1.267 GB, free: 173.1 MB / 1.014 GB Notification: Performance of SimCode: time 1.222e-06/1.111, allocations: 0 / 1.267 GB, free: 173.1 MB / 1.014 GB Notification: Performance of Templates: time 0.01357/1.125, allocations: 5.768 MB / 1.273 GB, free: 172.8 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_VolumeFlowRate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches