Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 95.64 kB / 18.95 MB, free: 2.691 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00191/0.00191, allocations: 213.1 kB / 22.25 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.654/1.654, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.453/3.453, allocations: 0.4892 GB / 0.7943 GB, free: 35.71 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Sensors.Examples.VolumeFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|senDyn.port_a.m_flow|senDyn.V_flow|senSteSta.V_flow",fileNamePrefix="Buildings_12_Buildings.Fluid.Sensors.Examples.VolumeFlowRate") translateModel(Buildings.Fluid.Sensors.Examples.VolumeFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|senDyn.port_a.m_flow|senDyn.V_flow|senSteSta.V_flow",fileNamePrefix="Buildings_12_Buildings.Fluid.Sensors.Examples.VolumeFlowRate") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002186/0.002186, allocations: 72.56 kB / 1.154 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4115/0.4137, allocations: 176.1 MB / 1.326 GB, free: 1.871 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.VolumeFlowRate): time 0.205/0.6187, allocations: 147.6 MB / 1.47 GB, free: 13.68 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.00324/0.6219, allocations: 1.485 MB / 1.471 GB, free: 12.2 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002568/0.6222, allocations: 15.88 kB / 1.471 GB, free: 12.18 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.0004524/0.6226, allocations: 146.9 kB / 1.471 GB, free: 12.04 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 0.001731/0.6243, allocations: 0.7079 MB / 1.472 GB, free: 11.33 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.001522/0.6259, allocations: 0.618 MB / 1.473 GB, free: 10.71 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.0008506/0.6267, allocations: 0.7089 MB / 1.473 GB, free: 10 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003582/0.6271, allocations: 185.1 kB / 1.473 GB, free: 9.816 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00102/0.6281, allocations: 0.4982 MB / 1.474 GB, free: 9.316 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003394/0.6284, allocations: 223 kB / 1.474 GB, free: 9.098 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 5.401e-05/0.6285, allocations: 24 kB / 1.474 GB, free: 9.074 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001332/0.6298, allocations: 0.7011 MB / 1.475 GB, free: 8.371 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.63, allocations: 111.6 kB / 1.475 GB, free: 8.262 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 0.0001747/0.6301, allocations: 143.4 kB / 1.475 GB, free: 8.121 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.6312, allocations: 0.693 MB / 1.476 GB, free: 7.426 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.6312, allocations: 8 kB / 1.476 GB, free: 7.418 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.292e-06/0.6312, allocations: 0 / 1.476 GB, free: 7.418 MB / 1.17 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.6312, allocations: 0 / 1.476 GB, free: 7.418 MB / 1.17 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.001001/0.6322, allocations: 0.5823 MB / 1.476 GB, free: 6.801 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.6322, allocations: 12.03 kB / 1.476 GB, free: 6.789 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001145/0.6334, allocations: 159.6 kB / 1.477 GB, free: 6.633 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000546/0.6339, allocations: 256.1 kB / 1.477 GB, free: 6.355 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.634, allocations: 16.44 kB / 1.477 GB, free: 6.34 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.691e-05/0.634, allocations: 24 kB / 1.477 GB, free: 6.316 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005047/0.6345, allocations: 271.5 kB / 1.477 GB, free: 6.031 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.6345, allocations: 7.938 kB / 1.477 GB, free: 6.023 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.6346, allocations: 12 kB / 1.477 GB, free: 6.012 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.6346, allocations: 4 kB / 1.477 GB, free: 6.008 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004423/0.635, allocations: 191.8 kB / 1.477 GB, free: 5.82 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001395/0.6364, allocations: 0.9233 MB / 1.478 GB, free: 4.852 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003149/0.6367, allocations: 130.5 kB / 1.478 GB, free: 4.715 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.6369, allocations: 84.8 kB / 1.478 GB, free: 4.629 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004787/0.6374, allocations: 75.92 kB / 1.478 GB, free: 4.555 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.6374, allocations: 38.56 kB / 1.479 GB, free: 4.508 MB / 1.17 GB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.6374, allocations: 0 / 1.479 GB, free: 4.508 MB / 1.17 GB Notification: Performance of matching and sorting (n=15): time 0.0008179/0.6382, allocations: 277.5 kB / 1.479 GB, free: 4.23 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.6383, allocations: 55.41 kB / 1.479 GB, free: 4.164 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002801/0.6386, allocations: 245.9 kB / 1.479 GB, free: 3.91 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.6386, allocations: 29.64 kB / 1.479 GB, free: 3.875 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.6388, allocations: 192.2 kB / 1.479 GB, free: 3.684 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 5.496e-05/0.6388, allocations: 59.52 kB / 1.479 GB, free: 3.625 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.305e-05/0.6389, allocations: 49.59 kB / 1.479 GB, free: 3.57 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.000183/0.6391, allocations: 334.8 kB / 1.48 GB, free: 3.234 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.6392, allocations: 63.95 kB / 1.48 GB, free: 3.172 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002835/0.6395, allocations: 199.7 kB / 1.48 GB, free: 2.941 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004036/0.6399, allocations: 196.9 kB / 1.48 GB, free: 2.73 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.6399, allocations: 0 / 1.48 GB, free: 2.73 MB / 1.17 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000496/0.6404, allocations: 227 kB / 1.48 GB, free: 2.504 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.6405, allocations: 8 kB / 1.48 GB, free: 2.496 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.6405, allocations: 0 / 1.48 GB, free: 2.496 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.6405, allocations: 7.938 kB / 1.48 GB, free: 2.488 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002097/0.6407, allocations: 48.02 kB / 1.48 GB, free: 2.441 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.6407, allocations: 4 kB / 1.48 GB, free: 2.438 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/0.6409, allocations: 23.88 kB / 1.48 GB, free: 2.414 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.889e-05/0.6409, allocations: 8 kB / 1.48 GB, free: 2.406 MB / 1.17 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.0001646/0.6411, allocations: 157.7 kB / 1.481 GB, free: 2.242 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.211e-05/0.6411, allocations: 27.81 kB / 1.481 GB, free: 2.215 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004915/0.6416, allocations: 221.4 kB / 1.481 GB, free: 1.996 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.6416, allocations: 0 / 1.481 GB, free: 1.996 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.6416, allocations: 4 kB / 1.481 GB, free: 1.992 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.6416, allocations: 0 / 1.481 GB, free: 1.992 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.6427, allocations: 0.6052 MB / 1.481 GB, free: 1.328 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.6427, allocations: 0 / 1.481 GB, free: 1.328 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.6428, allocations: 36.19 kB / 1.481 GB, free: 1.293 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.6429, allocations: 7.984 kB / 1.481 GB, free: 1.285 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.6429, allocations: 4 kB / 1.481 GB, free: 1.281 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.6429, allocations: 7.875 kB / 1.481 GB, free: 1.273 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.6429, allocations: 4 kB / 1.481 GB, free: 1.27 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006989/0.6436, allocations: 429.1 kB / 1.482 GB, free: 0.8125 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 9.73e-05/0.6437, allocations: 35.88 kB / 1.482 GB, free: 0.7773 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.08e-05/0.6437, allocations: 12.06 kB / 1.482 GB, free: 0.7656 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.6439, allocations: 11.92 kB / 1.482 GB, free: 0.7539 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.208e-05/0.6439, allocations: 19.92 kB / 1.482 GB, free: 0.7344 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.644, allocations: 4 kB / 1.482 GB, free: 0.7305 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.0001759/0.6441, allocations: 177.2 kB / 1.482 GB, free: 0.5625 MB / 1.17 GB Notification: Performance of sort global known variables: time 8e-08/0.6441, allocations: 0 / 1.482 GB, free: 0.5625 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.0004429/0.6446, allocations: 87.83 kB / 1.482 GB, free: 488 kB / 1.17 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.0003138/0.6449, allocations: 151.1 kB / 1.482 GB, free: 324 kB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.0004946/0.6454, allocations: 167.8 kB / 1.483 GB, free: 156 kB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.6454, allocations: 0 / 1.483 GB, free: 156 kB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.6456, allocations: 83.81 kB / 1.483 GB, free: 72 kB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007615/0.6463, allocations: 128.7 kB / 1.483 GB, free: 15.95 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.6474, allocations: 0.5942 MB / 1.483 GB, free: 15.31 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.6476, allocations: 174.6 kB / 1.483 GB, free: 15.12 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.0001784/0.6478, allocations: 58.23 kB / 1.484 GB, free: 15.06 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/0.6478, allocations: 23.44 kB / 1.484 GB, free: 15.04 MB / 1.186 GB Notification: Performance of SimCode: time 3.11e-07/0.6478, allocations: 0 / 1.484 GB, free: 15.04 MB / 1.186 GB Notification: Performance of Templates: time 0.01099/0.6588, allocations: 5.209 MB / 1.489 GB, free: 9.961 MB / 1.186 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; mkfifo Buildings_12_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe >> ../files/Buildings_12_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.sim & ./Buildings_12_Buildings.Fluid.Sensors.Examples.VolumeFlowRate -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Sensors.Examples.VolumeFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Sensors_Examples_VolumeFlowRate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.017496487125754]