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.001502/0.001502, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001551/0.001551, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.4/1.4, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.735/2.735, allocations: 482.4 MB / 0.7553 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002303/0.002303, allocations: 68.73 kB / 0.9245 GB, free: 16 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7926/0.795, allocations: 162.2 MB / 1.083 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.2161/1.011, allocations: 176.8 MB / 1.256 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01788/1.029, allocations: 12.81 MB / 1.268 GB, free: 0.7344 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001414/1.03, allocations: 35.81 kB / 1.268 GB, free: 0.6992 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.00132/1.032, allocations: 472.4 kB / 1.269 GB, free: 240 kB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.003017/1.035, allocations: 1.025 MB / 1.27 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004619/1.04, allocations: 1.863 MB / 1.271 GB, free: 13.35 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003263/1.043, allocations: 2.504 MB / 1.274 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002323/1.045, allocations: 1.61 MB / 1.275 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004467/1.05, allocations: 1.546 MB / 1.277 GB, free: 7.645 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001381/1.051, allocations: 0.8675 MB / 1.278 GB, free: 6.773 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003246/1.051, allocations: 176 kB / 1.278 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002878/1.054, allocations: 1.396 MB / 1.279 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004905/1.055, allocations: 494.5 kB / 1.28 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001002/1.056, allocations: 0.8747 MB / 1.281 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003995/1.06, allocations: 2.742 MB / 1.283 GB, free: 1.09 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/1.06, allocations: 0 / 1.283 GB, free: 1.09 MB / 0.9981 GB Notification: Performance of FrontEnd: time 4.158e-06/1.06, allocations: 0 / 1.283 GB, free: 1.09 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.227e-05/1.06, allocations: 3.938 kB / 1.283 GB, free: 1.086 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.003792/1.064, allocations: 2.032 MB / 1.285 GB, free: 14.99 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/1.064, allocations: 11.97 kB / 1.285 GB, free: 14.98 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002663/1.066, allocations: 409.4 kB / 1.286 GB, free: 14.58 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001718/1.068, allocations: 0.9916 MB / 1.287 GB, free: 13.54 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.631e-05/1.068, allocations: 102.7 kB / 1.287 GB, free: 13.44 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/1.068, allocations: 128 kB / 1.287 GB, free: 13.32 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002803/1.071, allocations: 1.524 MB / 1.288 GB, free: 11.71 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/1.071, allocations: 3.938 kB / 1.288 GB, free: 11.71 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/1.071, allocations: 60 kB / 1.288 GB, free: 11.65 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.66e-05/1.071, allocations: 32 kB / 1.288 GB, free: 11.62 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002871/1.074, allocations: 1.587 MB / 1.29 GB, free: 10.03 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.008467/1.083, allocations: 5.442 MB / 1.295 GB, free: 4.234 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002802/1.086, allocations: 1.515 MB / 1.297 GB, free: 2.645 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008896/1.087, allocations: 478.4 kB / 1.297 GB, free: 2.18 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007822/1.087, allocations: 429.3 kB / 1.298 GB, free: 1.688 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/1.089, allocations: 0.6918 MB / 1.298 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of pre-optimization done (n=107): time 2.916e-06/1.089, allocations: 0 / 1.298 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of matching and sorting (n=107): time 0.004512/1.093, allocations: 1.657 MB / 1.3 GB, free: 15.29 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/1.093, allocations: 204.8 kB / 1.3 GB, free: 15.05 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001275/1.095, allocations: 0.892 MB / 1.301 GB, free: 14.13 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001104/1.095, allocations: 49.7 kB / 1.301 GB, free: 14.08 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005518/1.095, allocations: 0.5975 MB / 1.302 GB, free: 13.47 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003289/1.096, allocations: 354.9 kB / 1.302 GB, free: 13.12 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003413/1.096, allocations: 214.7 kB / 1.302 GB, free: 12.91 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001649/1.096, allocations: 349.9 kB / 1.303 GB, free: 12.56 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008172/1.097, allocations: 394.4 kB / 1.303 GB, free: 12.17 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/1.098, allocations: 0.5746 MB / 1.303 GB, free: 11.55 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001811/1.1, allocations: 0.9527 MB / 1.304 GB, free: 10.55 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/1.1, allocations: 4 kB / 1.304 GB, free: 10.55 MB / 1.029 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002898/1.103, allocations: 1.231 MB / 1.306 GB, free: 9.305 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/1.103, allocations: 9.875 kB / 1.306 GB, free: 9.297 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/1.103, allocations: 416 / 1.306 GB, free: 9.297 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006073/1.103, allocations: 92.75 kB / 1.306 GB, free: 9.203 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/1.105, allocations: 259.6 kB / 1.306 GB, free: 8.949 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002443/1.107, allocations: 1.646 MB / 1.308 GB, free: 7.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/1.108, allocations: 134.8 kB / 1.308 GB, free: 7.027 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/1.108, allocations: 60.03 kB / 1.308 GB, free: 6.969 MB / 1.029 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.000708/1.109, allocations: 341.2 kB / 1.308 GB, free: 6.629 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003108/1.109, allocations: 126.5 kB / 1.308 GB, free: 6.504 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003358/1.113, allocations: 1.437 MB / 1.31 GB, free: 5.055 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/1.113, allocations: 12 kB / 1.31 GB, free: 5.043 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.113, allocations: 4 kB / 1.31 GB, free: 5.039 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/1.113, allocations: 11.97 kB / 1.31 GB, free: 5.027 MB / 1.029 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.005214/1.118, allocations: 2.874 MB / 1.312 GB, free: 2.066 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.77e-06/1.118, allocations: 0 / 1.312 GB, free: 2.066 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009861/1.119, allocations: 219.7 kB / 1.313 GB, free: 1.852 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004497/1.12, allocations: 76.78 kB / 1.313 GB, free: 1.773 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.051e-05/1.12, allocations: 31.97 kB / 1.313 GB, free: 1.742 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002109/1.122, allocations: 1.674 MB / 1.314 GB, free: 15.92 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/1.122, allocations: 4.062 kB / 1.314 GB, free: 15.92 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003188/1.125, allocations: 1.316 MB / 1.316 GB, free: 14.59 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006487/1.126, allocations: 355.2 kB / 1.316 GB, free: 14.22 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001857/1.126, allocations: 27.98 kB / 1.316 GB, free: 14.19 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00091/1.127, allocations: 79.92 kB / 1.316 GB, free: 14.11 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000195/1.127, allocations: 88.81 kB / 1.316 GB, free: 14.02 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/1.127, allocations: 52.03 kB / 1.316 GB, free: 13.97 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0009114/1.128, allocations: 0.6227 MB / 1.317 GB, free: 13.34 MB / 1.045 GB Notification: Performance of sort global known variables: time 2.61e-07/1.128, allocations: 0 / 1.317 GB, free: 13.34 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001356/1.129, allocations: 498.9 kB / 1.317 GB, free: 12.85 MB / 1.045 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.002244/1.132, allocations: 0.7162 MB / 1.318 GB, free: 12.32 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.003701/1.135, allocations: 1.472 MB / 1.319 GB, free: 10.84 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/1.135, allocations: 4 kB / 1.319 GB, free: 10.84 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001295/1.137, allocations: 0.6719 MB / 1.32 GB, free: 10.15 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002361/1.139, allocations: 0.5261 MB / 1.321 GB, free: 9.648 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004408/1.143, allocations: 2.419 MB / 1.323 GB, free: 7.195 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008826/1.144, allocations: 1.208 MB / 1.324 GB, free: 5.953 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00053/1.145, allocations: 159.3 kB / 1.324 GB, free: 5.797 MB / 1.045 GB Notification: Performance of SimCode: time 5.11e-07/1.145, allocations: 0 / 1.324 GB, free: 5.797 MB / 1.045 GB Notification: Performance of Templates: time 0.04231/1.187, allocations: 28.4 MB / 1.352 GB, free: 9.523 MB / 1.076 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=400 -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