Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.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.00135/0.00135, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.001485/0.001485, allocations: 209.9 kB / 22.99 MB, free: 4.957 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.471/1.471, allocations: 230.6 MB / 256.8 MB, free: 7.777 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.143/3.143, allocations: 0.49 GB / 0.7959 GB, free: 35.38 MB / 0.6231 GB " [Timeout remaining time 177] 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.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|senTem.T|senRelHum.phi|senMasFra.X",fileNamePrefix="Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|senTem.T|senRelHum.phi|senMasFra.X",fileNamePrefix="Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData") [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.002075/0.002075, allocations: 68.91 kB / 1.155 GB, free: 25.17 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2864, allocations: 176.1 MB / 1.327 GB, free: 0.9688 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1931/0.4795, allocations: 156.1 MB / 1.479 GB, free: 4.328 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.01775/0.4972, allocations: 12.04 MB / 1.491 GB, free: 8.25 MB / 1.186 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009932/0.4982, allocations: 43.62 kB / 1.491 GB, free: 8.207 MB / 1.186 GB Notification: Performance of NFTyping.typeComponents: time 0.001226/0.4995, allocations: 464.4 kB / 1.492 GB, free: 7.75 MB / 1.186 GB Notification: Performance of NFTyping.typeBindings: time 0.002661/0.5021, allocations: 1.074 MB / 1.493 GB, free: 6.672 MB / 1.186 GB Notification: Performance of NFTyping.typeClassSections: time 0.004307/0.5064, allocations: 1.91 MB / 1.495 GB, free: 4.77 MB / 1.186 GB Notification: Performance of NFFlatten.flatten: time 0.002744/0.5092, allocations: 2.563 MB / 1.497 GB, free: 2.199 MB / 1.186 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001802/0.511, allocations: 1.291 MB / 1.498 GB, free: 0.8477 MB / 1.186 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004191/0.5152, allocations: 1.648 MB / 1.5 GB, free: 15.23 MB / 1.201 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.5163, allocations: 0.9025 MB / 1.501 GB, free: 14.32 MB / 1.201 GB Notification: Performance of NFPackage.collectConstants: time 0.0002472/0.5165, allocations: 172 kB / 1.501 GB, free: 14.15 MB / 1.201 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002362/0.5189, allocations: 1.31 MB / 1.502 GB, free: 12.84 MB / 1.201 GB Notification: Performance of NFScalarize.scalarize: time 0.0004748/0.5194, allocations: 0.4946 MB / 1.503 GB, free: 12.34 MB / 1.201 GB Notification: Performance of NFVerifyModel.verify: time 0.0007743/0.5202, allocations: 0.7271 MB / 1.504 GB, free: 11.61 MB / 1.201 GB Notification: Performance of NFConvertDAE.convert: time 0.003619/0.5238, allocations: 2.834 MB / 1.506 GB, free: 8.77 MB / 1.201 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.5238, allocations: 0 / 1.506 GB, free: 8.77 MB / 1.201 GB Notification: Performance of FrontEnd: time 1.402e-06/0.5238, allocations: 0 / 1.506 GB, free: 8.77 MB / 1.201 GB Notification: Performance of Transformations before backend: time 4.08e-05/0.5238, allocations: 8 kB / 1.506 GB, free: 8.762 MB / 1.201 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 346 * Number of variables: 346 Notification: Performance of Generate backend data structure: time 0.003723/0.5275, allocations: 2.025 MB / 1.508 GB, free: 6.691 MB / 1.201 GB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.5276, allocations: 8.031 kB / 1.508 GB, free: 6.684 MB / 1.201 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003361/0.5309, allocations: 470.4 kB / 1.509 GB, free: 6.223 MB / 1.201 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00191/0.5328, allocations: 0.971 MB / 1.51 GB, free: 5.219 MB / 1.201 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.533, allocations: 102.7 kB / 1.51 GB, free: 5.117 MB / 1.201 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002076/0.5332, allocations: 132 kB / 1.51 GB, free: 4.988 MB / 1.201 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003098/0.5363, allocations: 2.026 MB / 1.512 GB, free: 2.762 MB / 1.201 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.397e-05/0.5363, allocations: 3.938 kB / 1.512 GB, free: 2.758 MB / 1.201 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001541/0.5364, allocations: 59.98 kB / 1.512 GB, free: 2.699 MB / 1.201 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.231e-05/0.5365, allocations: 36 kB / 1.512 GB, free: 2.664 MB / 1.201 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002893/0.5394, allocations: 1.532 MB / 1.513 GB, free: 1.125 MB / 1.201 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.006878/0.5463, allocations: 3.781 MB / 1.517 GB, free: 13.27 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002647/0.5489, allocations: 1.145 MB / 1.518 GB, free: 12.11 MB / 1.217 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009007/0.5498, allocations: 447.6 kB / 1.519 GB, free: 11.67 MB / 1.217 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006692/0.5505, allocations: 112.9 kB / 1.519 GB, free: 11.56 MB / 1.217 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001588/0.5521, allocations: 1.046 MB / 1.52 GB, free: 10.41 MB / 1.217 GB Notification: Performance of pre-optimization done (n=107): time 3.005e-06/0.5521, allocations: 3.938 kB / 1.52 GB, free: 10.41 MB / 1.217 GB Notification: Performance of matching and sorting (n=107): time 0.004692/0.5568, allocations: 1.582 MB / 1.521 GB, free: 8.816 MB / 1.217 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.5569, allocations: 196.9 kB / 1.522 GB, free: 8.582 MB / 1.217 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001071/0.5579, allocations: 0.763 MB / 1.522 GB, free: 7.809 MB / 1.217 GB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.558, allocations: 49.7 kB / 1.522 GB, free: 7.754 MB / 1.217 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005666/0.5586, allocations: 0.618 MB / 1.523 GB, free: 7.129 MB / 1.217 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003427/0.559, allocations: 372.8 kB / 1.523 GB, free: 6.762 MB / 1.217 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003779/0.5593, allocations: 222.8 kB / 1.524 GB, free: 6.539 MB / 1.217 GB Notification: Performance of setup shared object (initialization): time 0.000168/0.5595, allocations: 341.9 kB / 1.524 GB, free: 6.199 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008935/0.5604, allocations: 402.4 kB / 1.524 GB, free: 5.805 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/0.5615, allocations: 0.7425 MB / 1.525 GB, free: 4.965 MB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001926/0.5635, allocations: 0.9566 MB / 1.526 GB, free: 3.969 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.301e-06/0.5635, allocations: 4 kB / 1.526 GB, free: 3.965 MB / 1.217 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002933/0.5664, allocations: 1.22 MB / 1.527 GB, free: 2.734 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.5664, allocations: 7.938 kB / 1.527 GB, free: 2.727 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.5664, allocations: 4 kB / 1.527 GB, free: 2.723 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006765/0.5671, allocations: 85 kB / 1.527 GB, free: 2.637 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.5684, allocations: 259.6 kB / 1.527 GB, free: 2.383 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002344/0.5707, allocations: 1.508 MB / 1.529 GB, free: 0.7695 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.5717, allocations: 123.4 kB / 1.529 GB, free: 0.6484 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.5718, allocations: 55.89 kB / 1.529 GB, free: 0.5938 MB / 1.217 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005886/0.5724, allocations: 351.2 kB / 1.529 GB, free: 248 kB / 1.217 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002334/0.5727, allocations: 115.3 kB / 1.53 GB, free: 132 kB / 1.217 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00354/0.5762, allocations: 1.432 MB / 1.531 GB, free: 14.68 MB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/0.5762, allocations: 11.94 kB / 1.531 GB, free: 14.66 MB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.5762, allocations: 4 kB / 1.531 GB, free: 14.66 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.5762, allocations: 7.984 kB / 1.531 GB, free: 14.65 MB / 1.232 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 postOpt removeSimpleEquations (simulation): time 0.004907/0.5811, allocations: 2.411 MB / 1.533 GB, free: 12.2 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.5811, allocations: 0 / 1.533 GB, free: 12.2 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.5822, allocations: 219.7 kB / 1.534 GB, free: 11.99 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004854/0.5827, allocations: 76.78 kB / 1.534 GB, free: 11.91 MB / 1.232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.391e-05/0.5828, allocations: 27.97 kB / 1.534 GB, free: 11.88 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002098/0.5849, allocations: 1.543 MB / 1.535 GB, free: 10.23 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.5849, allocations: 0 / 1.535 GB, free: 10.23 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002923/0.5878, allocations: 1.315 MB / 1.536 GB, free: 8.898 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006236/0.5884, allocations: 270.8 kB / 1.537 GB, free: 8.633 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.5886, allocations: 24 kB / 1.537 GB, free: 8.609 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009796/0.5896, allocations: 87.86 kB / 1.537 GB, free: 8.527 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.5898, allocations: 84.83 kB / 1.537 GB, free: 8.445 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/0.5899, allocations: 51.97 kB / 1.537 GB, free: 8.395 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.0007548/0.5906, allocations: 0.5302 MB / 1.537 GB, free: 7.867 MB / 1.232 GB Notification: Performance of sort global known variables: time 1e-07/0.5906, allocations: 0 / 1.537 GB, free: 7.867 MB / 1.232 GB Notification: Performance of remove unused functions: time 0.001327/0.592, allocations: 0.5141 MB / 1.538 GB, free: 7.352 MB / 1.232 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00234/0.5943, allocations: 0.7298 MB / 1.539 GB, free: 6.824 MB / 1.232 GB Notification: Performance of simCode: created initialization part: time 0.002503/0.5968, allocations: 1.113 MB / 1.54 GB, free: 5.699 MB / 1.232 GB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.5968, allocations: 0 / 1.54 GB, free: 5.699 MB / 1.232 GB Notification: Performance of simCode: created simulation system equations: time 0.001276/0.5981, allocations: 0.6329 MB / 1.54 GB, free: 5.059 MB / 1.232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00187/0.6, allocations: 453.7 kB / 1.541 GB, free: 4.637 MB / 1.232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004444/0.6044, allocations: 2.396 MB / 1.543 GB, free: 2.207 MB / 1.232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007272/0.6051, allocations: 0.6299 MB / 1.544 GB, free: 1.543 MB / 1.232 GB Notification: Performance of simCode: alias equations: time 0.001222/0.6063, allocations: 372.7 kB / 1.544 GB, free: 1.176 MB / 1.232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003861/0.6067, allocations: 139.4 kB / 1.544 GB, free: 1.039 MB / 1.232 GB Notification: Performance of SimCode: time 9.12e-07/0.6067, allocations: 0 / 1.544 GB, free: 1.039 MB / 1.232 GB Notification: Performance of Templates: time 0.04211/0.6488, allocations: 24.95 MB / 1.569 GB, free: 8.516 MB / 1.264 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.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: 9.883473381007207]