Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTem.T|senRelHum.phi|senMasFra.X",fileNamePrefix="Buildings_9_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_9_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.001184/0.001184, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001525/0.001525, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 223.3 MB / 240 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.41/2.41, allocations: 390.9 MB / 0.666 GB, free: 2.469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003522/0.0003524, allocations: 8 kB / 0.8153 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6512/0.6516, allocations: 142.4 MB / 0.9544 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1681/0.8197, allocations: 159.9 MB / 1.111 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01531/0.8351, allocations: 11.82 MB / 1.122 GB, free: 3.289 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001173/0.8363, allocations: 27.81 kB / 1.122 GB, free: 3.262 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.8375, allocations: 309.7 kB / 1.122 GB, free: 2.957 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002602/0.8401, allocations: 0.8114 MB / 1.123 GB, free: 2.145 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003881/0.844, allocations: 1.363 MB / 1.125 GB, free: 0.7891 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002765/0.8468, allocations: 2.411 MB / 1.127 GB, free: 14.37 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001834/0.8486, allocations: 1.188 MB / 1.128 GB, free: 13.15 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002274/0.8509, allocations: 1.039 MB / 1.129 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.852, allocations: 0.6804 MB / 1.13 GB, free: 11.43 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0002139/0.8522, allocations: 48 kB / 1.13 GB, free: 11.38 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00215/0.8544, allocations: 0.8774 MB / 1.131 GB, free: 10.5 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0004484/0.8548, allocations: 334.7 kB / 1.131 GB, free: 10.17 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0005332/0.8554, allocations: 300.8 kB / 1.131 GB, free: 9.871 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002871/0.8582, allocations: 1.929 MB / 1.133 GB, free: 7.941 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.8583, allocations: 0 / 1.133 GB, free: 7.941 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.286e-06/0.8583, allocations: 3.938 kB / 1.133 GB, free: 7.938 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.027e-05/0.8584, allocations: 3.938 kB / 1.133 GB, free: 7.934 MB / 0.8887 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.003419/0.8618, allocations: 1.689 MB / 1.135 GB, free: 6.184 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.8618, allocations: 12.03 kB / 1.135 GB, free: 6.172 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002559/0.8644, allocations: 413.5 kB / 1.135 GB, free: 5.766 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.8661, allocations: 0.9689 MB / 1.136 GB, free: 4.754 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-05/0.8662, allocations: 102.7 kB / 1.136 GB, free: 4.652 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002374/0.8665, allocations: 132 kB / 1.136 GB, free: 4.523 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002726/0.8692, allocations: 1.517 MB / 1.138 GB, free: 2.93 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.8693, allocations: 0 / 1.138 GB, free: 2.93 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/0.8694, allocations: 60 kB / 1.138 GB, free: 2.871 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.866e-05/0.8694, allocations: 36 kB / 1.138 GB, free: 2.836 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002621/0.8721, allocations: 1.583 MB / 1.14 GB, free: 1.246 MB / 0.8887 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.006947/0.879, allocations: 5.093 MB / 1.145 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002446/0.8815, allocations: 1.519 MB / 1.146 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008149/0.8823, allocations: 483.6 kB / 1.146 GB, free: 9.82 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006967/0.883, allocations: 441.2 kB / 1.147 GB, free: 9.316 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/0.8842, allocations: 0.6879 MB / 1.148 GB, free: 8.613 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=107): time 3.025e-06/0.8842, allocations: 0 / 1.148 GB, free: 8.613 MB / 0.9044 GB Notification: Performance of matching and sorting (n=107): time 0.003936/0.8882, allocations: 1.676 MB / 1.149 GB, free: 6.906 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.8883, allocations: 192.9 kB / 1.149 GB, free: 6.676 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001135/0.8894, allocations: 0.8842 MB / 1.15 GB, free: 5.77 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 9.863e-05/0.8895, allocations: 49.7 kB / 1.15 GB, free: 5.715 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.000456/0.89, allocations: 0.5935 MB / 1.151 GB, free: 5.113 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002943/0.8903, allocations: 350.9 kB / 1.151 GB, free: 4.766 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-05/0.8904, allocations: 24 kB / 1.151 GB, free: 4.742 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.8905, allocations: 349.9 kB / 1.152 GB, free: 4.395 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007611/0.8913, allocations: 398.4 kB / 1.152 GB, free: 4.004 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008887/0.8922, allocations: 0.5668 MB / 1.152 GB, free: 3.387 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008547/0.893, allocations: 462.8 kB / 1.153 GB, free: 2.934 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.8931, allocations: 0 / 1.153 GB, free: 2.934 MB / 0.9044 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002459/0.8955, allocations: 1.235 MB / 1.154 GB, free: 1.691 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.8955, allocations: 7.938 kB / 1.154 GB, free: 1.684 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.8956, allocations: 4 kB / 1.154 GB, free: 1.68 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005415/0.8961, allocations: 93.17 kB / 1.154 GB, free: 1.586 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.8972, allocations: 255.7 kB / 1.154 GB, free: 1.336 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/0.8991, allocations: 1.536 MB / 1.156 GB, free: 15.66 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.9001, allocations: 166.9 kB / 1.156 GB, free: 15.5 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001015/0.9002, allocations: 51.95 kB / 1.156 GB, free: 15.45 MB / 0.92 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 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0006184/0.9008, allocations: 343.1 kB / 1.157 GB, free: 15.1 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/0.9011, allocations: 122.5 kB / 1.157 GB, free: 14.98 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00312/0.9042, allocations: 1.448 MB / 1.158 GB, free: 13.52 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.9042, allocations: 12 kB / 1.158 GB, free: 13.5 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.9042, allocations: 0 / 1.158 GB, free: 13.5 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.9042, allocations: 7.969 kB / 1.158 GB, free: 13.5 MB / 0.92 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.004582/0.9088, allocations: 2.873 MB / 1.161 GB, free: 10.54 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.9089, allocations: 0 / 1.161 GB, free: 10.54 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009601/0.9098, allocations: 215.8 kB / 1.161 GB, free: 10.33 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004651/0.9103, allocations: 88.77 kB / 1.161 GB, free: 10.24 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-05/0.9104, allocations: 31.97 kB / 1.161 GB, free: 10.21 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001711/0.9121, allocations: 1.564 MB / 1.163 GB, free: 8.508 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.9121, allocations: 4 kB / 1.163 GB, free: 8.504 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00261/0.9148, allocations: 1.328 MB / 1.164 GB, free: 7.152 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006539/0.9154, allocations: 375.1 kB / 1.164 GB, free: 6.766 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002156/0.9157, allocations: 20 kB / 1.164 GB, free: 6.746 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009992/0.9167, allocations: 129.6 kB / 1.165 GB, free: 6.621 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.9168, allocations: 80.88 kB / 1.165 GB, free: 6.543 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.917, allocations: 47.97 kB / 1.165 GB, free: 6.496 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.000889/0.9179, allocations: 0.6111 MB / 1.165 GB, free: 5.875 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.01e-07/0.9179, allocations: 0 / 1.165 GB, free: 5.875 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001549/0.9194, allocations: 486.8 kB / 1.166 GB, free: 5.398 MB / 0.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002163/0.9216, allocations: 0.7113 MB / 1.166 GB, free: 4.871 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002891/0.9245, allocations: 1.144 MB / 1.168 GB, free: 3.715 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.104e-05/0.9245, allocations: 7.75 kB / 1.168 GB, free: 3.707 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.926, allocations: 0.6758 MB / 1.168 GB, free: 3.023 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002623/0.9286, allocations: 486.2 kB / 1.169 GB, free: 2.555 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005863/0.9345, allocations: 3.087 MB / 1.172 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008726/0.9354, allocations: 1.209 MB / 1.173 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001637/0.9371, allocations: 389.8 kB / 1.173 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004144/0.9375, allocations: 143.4 kB / 1.173 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of SimCode: time 9.02e-07/0.9375, allocations: 0 / 1.173 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of Templates: time 0.03774/0.9752, allocations: 22.18 MB / 1.195 GB, free: 7.777 MB / 0.9512 GB make -j1 -f Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches