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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.007605/0.007605, allocations: 101.4 kB / 15.88 MB, free: 5.867 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.001778/0.001778, allocations: 192.1 kB / 16.79 MB, free: 5.809 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.519/1.519, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.796/2.796, allocations: 461.9 MB / 0.7348 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001312, allocations: 64.34 kB / 0.899 GB, free: 37.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3516, allocations: 157.4 MB / 1.053 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1976/0.5492, allocations: 174.5 MB / 1.223 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01821/0.5674, allocations: 12.85 MB / 1.236 GB, free: 12.24 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001822/0.5693, allocations: 31.81 kB / 1.236 GB, free: 12.21 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.00186/0.5712, allocations: 385.5 kB / 1.236 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.003524/0.5748, allocations: 0.9048 MB / 1.237 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005078/0.5799, allocations: 1.678 MB / 1.239 GB, free: 9.258 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003796/0.5837, allocations: 2.871 MB / 1.241 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002814/0.5865, allocations: 1.463 MB / 1.243 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006252/0.5928, allocations: 1.258 MB / 1.244 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001972/0.5948, allocations: 0.8712 MB / 1.245 GB, free: 2.742 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005456/0.5953, allocations: 88 kB / 1.245 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003586/0.5989, allocations: 1.462 MB / 1.246 GB, free: 1.191 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006891/0.5997, allocations: 410.6 kB / 1.247 GB, free: 0.7891 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.7477/1.347, allocations: 0.7999 MB / 1.248 GB, free: 8.691 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.004122/1.352, allocations: 2.046 MB / 1.25 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/1.352, allocations: 0 / 1.25 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.893e-06/1.352, allocations: 0 / 1.25 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.136e-05/1.352, allocations: 1.062 kB / 1.25 GB, free: 8.633 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.005154/1.357, allocations: 2.027 MB / 1.252 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/1.357, allocations: 9.406 kB / 1.252 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003101/1.36, allocations: 409.8 kB / 1.252 GB, free: 7.609 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002294/1.362, allocations: 0.9882 MB / 1.253 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.613e-05/1.362, allocations: 100.1 kB / 1.253 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001853/1.363, allocations: 132.5 kB / 1.253 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003207/1.366, allocations: 1.524 MB / 1.255 GB, free: 7.031 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.025e-05/1.366, allocations: 3.625 kB / 1.255 GB, free: 7.031 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001425/1.366, allocations: 60.39 kB / 1.255 GB, free: 7.031 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.973e-05/1.366, allocations: 34.31 kB / 1.255 GB, free: 7.031 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00297/1.369, allocations: 1.586 MB / 1.256 GB, free: 7.016 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 preOpt removeSimpleEquations (simulation): time 0.009066/1.378, allocations: 5.319 MB / 1.261 GB, free: 4.488 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002681/1.381, allocations: 1.516 MB / 1.263 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008541/1.382, allocations: 485.7 kB / 1.263 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007663/1.382, allocations: 424.1 kB / 1.264 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00152/1.384, allocations: 0.6908 MB / 1.265 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=107): time 3.727e-06/1.384, allocations: 0 / 1.265 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of matching and sorting (n=107): time 0.005732/1.39, allocations: 1.666 MB / 1.266 GB, free: 3.387 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/1.39, allocations: 200.4 kB / 1.266 GB, free: 3.168 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002224/1.392, allocations: 0.8914 MB / 1.267 GB, free: 19.01 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.000212/1.392, allocations: 53.92 kB / 1.267 GB, free: 18.98 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007245/1.393, allocations: 0.596 MB / 1.268 GB, free: 18.72 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004167/1.394, allocations: 354.7 kB / 1.268 GB, free: 18.5 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00045/1.394, allocations: 213 kB / 1.268 GB, free: 18.48 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000197/1.394, allocations: 345.5 kB / 1.269 GB, free: 18.18 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009788/1.395, allocations: 395.8 kB / 1.269 GB, free: 18.18 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/1.396, allocations: 0.5721 MB / 1.27 GB, free: 18.03 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002036/1.398, allocations: 0.9594 MB / 1.271 GB, free: 17.89 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/1.398, allocations: 1.031 kB / 1.271 GB, free: 17.89 MB / 1.014 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003728/1.402, allocations: 1.239 MB / 1.272 GB, free: 17.76 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/1.402, allocations: 7.234 kB / 1.272 GB, free: 17.76 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/1.402, allocations: 4.859 kB / 1.272 GB, free: 17.76 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006799/1.403, allocations: 86.52 kB / 1.272 GB, free: 17.75 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/1.404, allocations: 257.8 kB / 1.272 GB, free: 17.75 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002191/1.406, allocations: 1.542 MB / 1.274 GB, free: 16.45 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/1.408, allocations: 153.3 kB / 1.274 GB, free: 16.39 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/1.408, allocations: 49.67 kB / 1.274 GB, free: 16.39 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.0009304/1.409, allocations: 349.6 kB / 1.274 GB, free: 16.27 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003581/1.409, allocations: 122.9 kB / 1.274 GB, free: 16.2 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003436/1.413, allocations: 1.437 MB / 1.276 GB, free: 16.08 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.447e-05/1.413, allocations: 14.25 kB / 1.276 GB, free: 16.08 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/1.413, allocations: 1.062 kB / 1.276 GB, free: 16.08 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/1.413, allocations: 5.109 kB / 1.276 GB, free: 16.08 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.00549/1.419, allocations: 2.875 MB / 1.279 GB, free: 15.57 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/1.419, allocations: 3.656 kB / 1.279 GB, free: 15.57 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009787/1.42, allocations: 214.5 kB / 1.279 GB, free: 15.57 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004944/1.42, allocations: 86 kB / 1.279 GB, free: 15.56 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-05/1.42, allocations: 33.95 kB / 1.279 GB, free: 15.56 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001794/1.422, allocations: 1.568 MB / 1.28 GB, free: 14.26 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/1.422, allocations: 0 / 1.28 GB, free: 14.26 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002805/1.425, allocations: 1.316 MB / 1.282 GB, free: 14.03 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007203/1.425, allocations: 357.8 kB / 1.282 GB, free: 13.86 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002086/1.426, allocations: 30.25 kB / 1.282 GB, free: 13.85 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/1.427, allocations: 106.9 kB / 1.282 GB, free: 13.84 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/1.427, allocations: 84.44 kB / 1.282 GB, free: 13.84 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/1.427, allocations: 49.11 kB / 1.282 GB, free: 13.84 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001002/1.428, allocations: 0.6157 MB / 1.283 GB, free: 13.73 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.6e-07/1.428, allocations: 0 / 1.283 GB, free: 13.73 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001859/1.43, allocations: 0.4921 MB / 1.283 GB, free: 13.65 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.001769/1.432, allocations: 0.7097 MB / 1.284 GB, free: 13.46 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002759/1.435, allocations: 1.146 MB / 1.285 GB, free: 13.32 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/1.435, allocations: 0.8125 kB / 1.285 GB, free: 13.32 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001308/1.436, allocations: 0.6774 MB / 1.286 GB, free: 13.2 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/1.439, allocations: 0.4926 MB / 1.286 GB, free: 13.17 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00514/1.444, allocations: 3.002 MB / 1.289 GB, free: 11.65 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009273/1.445, allocations: 1.21 MB / 1.29 GB, free: 10.91 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006928/1.445, allocations: 154.5 kB / 1.291 GB, free: 10.9 MB / 1.014 GB Notification: Performance of SimCode: time 7.52e-07/1.445, allocations: 0 / 1.291 GB, free: 10.9 MB / 1.014 GB Notification: Performance of Templates: time 0.0425/1.488, allocations: 28.41 MB / 1.318 GB, free: 4.902 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,senTem.T,senRelHum.phi,senMasFra.X Variables in the result:senMasFra.X,senRelHum.phi,senTem.T,time