Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001731/0.001731, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002394/0.002394, allocations: 196.1 kB / 16.14 MB, free: 6.711 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.416/1.416, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.768/2.768, allocations: 472.6 MB / 0.7447 GB, free: 4.938 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 64.69 kB / 0.9114 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.326, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.321/0.6472, allocations: 174.5 MB / 1.238 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6598/1.307, allocations: 12.84 MB / 1.25 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001555/1.309, allocations: 31.12 kB / 1.251 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001435/1.31, allocations: 385.8 kB / 1.251 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.003198/1.313, allocations: 0.918 MB / 1.252 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005/1.318, allocations: 1.671 MB / 1.253 GB, free: 5.602 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004109/1.322, allocations: 2.868 MB / 1.256 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0025/1.325, allocations: 1.459 MB / 1.258 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005154/1.33, allocations: 1.262 MB / 1.259 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001817/1.332, allocations: 0.8681 MB / 1.26 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005418/1.333, allocations: 91.78 kB / 1.26 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00369/1.336, allocations: 1.461 MB / 1.261 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007797/1.337, allocations: 415 kB / 1.262 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001774/1.339, allocations: 0.7958 MB / 1.262 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00488/1.344, allocations: 2.73 MB / 1.265 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/1.344, allocations: 2.484 kB / 1.265 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.253e-06/1.344, allocations: 2.906 kB / 1.265 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.705e-05/1.344, allocations: 0 / 1.265 GB, free: 5.191 MB / 0.9981 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.005208/1.349, allocations: 2.024 MB / 1.267 GB, free: 20.19 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/1.349, allocations: 9.844 kB / 1.267 GB, free: 20.19 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003122/1.352, allocations: 405.6 kB / 1.267 GB, free: 20.09 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001893/1.354, allocations: 0.9915 MB / 1.268 GB, free: 19.74 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.655e-05/1.354, allocations: 107.8 kB / 1.269 GB, free: 19.73 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002436/1.355, allocations: 133.8 kB / 1.269 GB, free: 19.73 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003407/1.358, allocations: 1.527 MB / 1.27 GB, free: 19.5 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.413e-05/1.358, allocations: 0 / 1.27 GB, free: 19.5 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001725/1.358, allocations: 61.28 kB / 1.27 GB, free: 19.5 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.543e-05/1.358, allocations: 33.31 kB / 1.27 GB, free: 19.5 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003312/1.362, allocations: 1.586 MB / 1.272 GB, free: 19.48 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.009061/1.371, allocations: 5.315 MB / 1.277 GB, free: 16.93 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002865/1.373, allocations: 1.525 MB / 1.278 GB, free: 16.51 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008928/1.374, allocations: 482.1 kB / 1.279 GB, free: 16.5 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008133/1.375, allocations: 431.6 kB / 1.279 GB, free: 16.12 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001339/1.377, allocations: 0.6907 MB / 1.28 GB, free: 16.05 MB / 1.014 GB Notification: Performance of pre-optimization done (n=107): time 4.308e-06/1.377, allocations: 0 / 1.28 GB, free: 16.05 MB / 1.014 GB Notification: Performance of matching and sorting (n=107): time 0.004768/1.381, allocations: 1.666 MB / 1.282 GB, free: 15.83 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/1.382, allocations: 196 kB / 1.282 GB, free: 15.61 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/1.383, allocations: 0.892 MB / 1.283 GB, free: 15.45 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001503/1.383, allocations: 52.27 kB / 1.283 GB, free: 15.42 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004772/1.384, allocations: 0.5962 MB / 1.283 GB, free: 15.16 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002729/1.384, allocations: 353.9 kB / 1.284 GB, free: 14.94 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003647/1.384, allocations: 223.6 kB / 1.284 GB, free: 14.91 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000123/1.385, allocations: 343.8 kB / 1.284 GB, free: 14.61 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008657/1.385, allocations: 394.9 kB / 1.285 GB, free: 14.61 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00096/1.386, allocations: 0.5764 MB / 1.285 GB, free: 14.45 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001812/1.388, allocations: 0.9549 MB / 1.286 GB, free: 14.32 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/1.388, allocations: 0 / 1.286 GB, free: 14.32 MB / 1.014 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00296/1.391, allocations: 1.241 MB / 1.287 GB, free: 14.18 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/1.391, allocations: 7.781 kB / 1.287 GB, free: 14.18 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/1.391, allocations: 3.656 kB / 1.287 GB, free: 14.18 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006349/1.392, allocations: 85.62 kB / 1.287 GB, free: 14.17 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/1.393, allocations: 250 kB / 1.288 GB, free: 14.17 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00204/1.395, allocations: 1.545 MB / 1.289 GB, free: 12.87 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/1.396, allocations: 153.2 kB / 1.289 GB, free: 12.81 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/1.397, allocations: 56.22 kB / 1.289 GB, free: 12.81 MB / 1.014 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.0007943/1.397, allocations: 345.7 kB / 1.29 GB, free: 12.68 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003911/1.398, allocations: 122.9 kB / 1.29 GB, free: 12.62 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00342/1.401, allocations: 1.432 MB / 1.291 GB, free: 12.5 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/1.401, allocations: 11.75 kB / 1.291 GB, free: 12.5 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/1.401, allocations: 2.297 kB / 1.291 GB, free: 12.5 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/1.401, allocations: 7.344 kB / 1.291 GB, free: 12.5 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 postOpt removeSimpleEquations (simulation): time 0.005461/1.407, allocations: 2.88 MB / 1.294 GB, free: 11.98 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/1.407, allocations: 0 / 1.294 GB, free: 11.98 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/1.408, allocations: 217.7 kB / 1.294 GB, free: 11.98 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005646/1.408, allocations: 92.47 kB / 1.294 GB, free: 11.96 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/1.409, allocations: 34.33 kB / 1.294 GB, free: 11.96 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001899/1.41, allocations: 1.567 MB / 1.296 GB, free: 10.66 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/1.41, allocations: 0 / 1.296 GB, free: 10.66 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003016/1.414, allocations: 1.318 MB / 1.297 GB, free: 10.42 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008268/1.414, allocations: 355 kB / 1.297 GB, free: 10.25 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003302/1.415, allocations: 39.27 kB / 1.298 GB, free: 10.23 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/1.416, allocations: 94.3 kB / 1.298 GB, free: 10.23 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002557/1.416, allocations: 82.69 kB / 1.298 GB, free: 10.23 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001461/1.416, allocations: 57.86 kB / 1.298 GB, free: 10.23 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001064/1.418, allocations: 0.6159 MB / 1.298 GB, free: 10.12 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.9e-07/1.418, allocations: 1.219 kB / 1.298 GB, free: 10.12 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001907/1.419, allocations: 0.4897 MB / 1.299 GB, free: 10.04 MB / 1.014 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.002121/1.422, allocations: 0.7169 MB / 1.3 GB, free: 9.785 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002671/1.424, allocations: 1.147 MB / 1.301 GB, free: 9.648 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/1.424, allocations: 1.25 kB / 1.301 GB, free: 9.648 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001306/1.426, allocations: 0.6771 MB / 1.301 GB, free: 9.527 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002614/1.428, allocations: 495.9 kB / 1.302 GB, free: 9.496 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004866/1.433, allocations: 2.953 MB / 1.305 GB, free: 7.996 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008456/1.434, allocations: 1.213 MB / 1.306 GB, free: 7.254 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001738/1.436, allocations: 388.8 kB / 1.306 GB, free: 7.137 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004473/1.436, allocations: 141.3 kB / 1.306 GB, free: 7.129 MB / 1.014 GB Notification: Performance of SimCode: time 7.21e-07/1.436, allocations: 0 / 1.306 GB, free: 7.129 MB / 1.014 GB Notification: Performance of Templates: time 0.04068/1.477, allocations: 23.54 MB / 1.329 GB, free: 1.207 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches