Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTem.T|senRelHum.phi|senMasFra.X",fileNamePrefix="Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTem.T|senRelHum.phi|senMasFra.X",fileNamePrefix="Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.01016/0.01016, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.481/1.481, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.568/2.568, allocations: 437.8 MB / 0.7121 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005072/0.0005073, allocations: 8 kB / 0.8728 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6688/0.6694, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1839/0.8533, allocations: 172.2 MB / 1.191 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0184/0.8717, allocations: 12.66 MB / 1.204 GB, free: 6.297 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001442/0.8732, allocations: 31.81 kB / 1.204 GB, free: 6.266 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001487/0.8747, allocations: 373.5 kB / 1.204 GB, free: 5.898 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.003337/0.8781, allocations: 0.917 MB / 1.205 GB, free: 4.98 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.004931/0.883, allocations: 1.679 MB / 1.206 GB, free: 3.309 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.004007/0.887, allocations: 2.859 MB / 1.209 GB, free: 444 kB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002697/0.8898, allocations: 1.37 MB / 1.211 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00498/0.8948, allocations: 1.168 MB / 1.212 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001565/0.8963, allocations: 0.7269 MB / 1.212 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0003792/0.8967, allocations: 48 kB / 1.212 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003232/0.9, allocations: 1.419 MB / 1.214 GB, free: 11.67 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0006626/0.9007, allocations: 342.6 kB / 1.214 GB, free: 11.33 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001442/0.9021, allocations: 0.7319 MB / 1.215 GB, free: 10.59 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.004991/0.9071, allocations: 2.663 MB / 1.218 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.9071, allocations: 0 / 1.218 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.394e-06/0.9072, allocations: 0 / 1.218 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.455e-05/0.9073, allocations: 0 / 1.218 GB, free: 7.918 MB / 0.9669 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.004067/0.9113, allocations: 1.693 MB / 1.219 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.9114, allocations: 15.97 kB / 1.219 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002989/0.9144, allocations: 429.5 kB / 1.22 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002065/0.9165, allocations: 0.9839 MB / 1.221 GB, free: 4.695 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.9166, allocations: 102.7 kB / 1.221 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000262/0.9169, allocations: 132 kB / 1.221 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003137/0.92, allocations: 1.532 MB / 1.222 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.908e-05/0.9201, allocations: 0 / 1.222 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001719/0.9202, allocations: 60 kB / 1.222 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-05/0.9203, allocations: 32 kB / 1.222 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002982/0.9233, allocations: 1.591 MB / 1.224 GB, free: 1.168 MB / 0.9669 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.0082/0.9315, allocations: 5.37 MB / 1.229 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002835/0.9343, allocations: 1.529 MB / 1.231 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00097/0.9353, allocations: 482.4 kB / 1.231 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008124/0.9362, allocations: 441.3 kB / 1.232 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001343/0.9375, allocations: 0.6985 MB / 1.232 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=107): time 3.317e-06/0.9376, allocations: 0 / 1.232 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of matching and sorting (n=107): time 0.004808/0.9424, allocations: 1.68 MB / 1.234 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/0.9425, allocations: 196.9 kB / 1.234 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.9443, allocations: 0.8959 MB / 1.235 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001443/0.9444, allocations: 53.64 kB / 1.235 GB, free: 5.266 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006297/0.9451, allocations: 0.5936 MB / 1.236 GB, free: 4.664 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003826/0.9455, allocations: 350.9 kB / 1.236 GB, free: 4.316 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/0.9456, allocations: 93.66 kB / 1.236 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.9458, allocations: 345.9 kB / 1.236 GB, free: 3.875 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008742/0.9467, allocations: 402.4 kB / 1.237 GB, free: 3.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.9477, allocations: 0.5746 MB / 1.237 GB, free: 2.855 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/0.9496, allocations: 0.9644 MB / 1.238 GB, free: 1.848 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.9496, allocations: 0 / 1.238 GB, free: 1.848 MB / 0.9825 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002999/0.9526, allocations: 1.242 MB / 1.239 GB, free: 0.5938 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.9526, allocations: 8 kB / 1.239 GB, free: 0.5859 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.9527, allocations: 3.984 kB / 1.239 GB, free: 0.582 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006313/0.9533, allocations: 93.06 kB / 1.239 GB, free: 500 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/0.9544, allocations: 251.7 kB / 1.24 GB, free: 248 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002188/0.9566, allocations: 1.55 MB / 1.241 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/0.958, allocations: 173.7 kB / 1.241 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/0.9582, allocations: 59.95 kB / 1.241 GB, free: 14.33 MB / 0.9981 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.0008079/0.959, allocations: 343.3 kB / 1.242 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003281/0.9593, allocations: 118.6 kB / 1.242 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003423/0.9628, allocations: 1.452 MB / 1.243 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.9628, allocations: 12 kB / 1.243 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.9628, allocations: 3.938 kB / 1.243 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.9628, allocations: 3.984 kB / 1.243 GB, free: 12.39 MB / 0.9981 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.005292/0.9681, allocations: 2.881 MB / 1.246 GB, free: 9.422 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.9681, allocations: 0 / 1.246 GB, free: 9.422 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.9692, allocations: 219.8 kB / 1.246 GB, free: 9.207 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005494/0.9697, allocations: 84.77 kB / 1.246 GB, free: 9.121 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.244e-05/0.9698, allocations: 35.97 kB / 1.246 GB, free: 9.086 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/0.9717, allocations: 1.563 MB / 1.248 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.9718, allocations: 0 / 1.248 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002945/0.9747, allocations: 1.332 MB / 1.249 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000768/0.9755, allocations: 371.1 kB / 1.25 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002703/0.9758, allocations: 31.98 kB / 1.25 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/0.977, allocations: 119.8 kB / 1.25 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.9772, allocations: 84.88 kB / 1.25 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.9774, allocations: 55.95 kB / 1.25 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001023/0.9784, allocations: 0.6111 MB / 1.251 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of sort global known variables: time 5.71e-07/0.9784, allocations: 0 / 1.251 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001501/0.9799, allocations: 0.491 MB / 1.251 GB, free: 4.246 MB / 0.9981 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.001809/0.9817, allocations: 0.7127 MB / 1.252 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002535/0.9843, allocations: 1.148 MB / 1.253 GB, free: 2.555 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/0.9843, allocations: 4.438 kB / 1.253 GB, free: 2.551 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001306/0.9856, allocations: 0.6759 MB / 1.254 GB, free: 1.859 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002886/0.9885, allocations: 0.4976 MB / 1.254 GB, free: 1.363 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5124/1.501, allocations: 2.975 MB / 1.257 GB, free: 227.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009661/1.502, allocations: 1.208 MB / 1.258 GB, free: 226.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001872/1.504, allocations: 386.9 kB / 1.258 GB, free: 226.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004436/1.504, allocations: 143.3 kB / 1.259 GB, free: 226.9 MB / 0.9981 GB Notification: Performance of SimCode: time 1.723e-06/1.504, allocations: 0 / 1.259 GB, free: 226.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.05164/1.556, allocations: 23.43 MB / 1.281 GB, free: 219.8 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (rm -f Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches