Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.007947/0.007947, allocations: 96.44 kB / 15.73 MB, free: 5.996 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.001825/0.001825, allocations: 186.3 kB / 16.67 MB, free: 5.926 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.838/2.838, allocations: 469.8 MB / 0.7425 GB, free: 7.277 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 67.89 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3028, allocations: 159.1 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.9734/1.276, allocations: 177.3 MB / 1.394 GB, free: 11.04 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.01853/1.295, allocations: 12.84 MB / 1.406 GB, free: 0.6758 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001936/1.297, allocations: 31.81 kB / 1.406 GB, free: 0.6641 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.002245/1.299, allocations: 483.4 kB / 1.407 GB, free: 260 kB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.004414/1.303, allocations: 1.053 MB / 1.408 GB, free: 15.43 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.006122/1.309, allocations: 1.886 MB / 1.41 GB, free: 14.03 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.005168/1.315, allocations: 2.535 MB / 1.412 GB, free: 12.51 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002799/1.317, allocations: 1.311 MB / 1.413 GB, free: 11.55 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004998/1.322, allocations: 1.466 MB / 1.415 GB, free: 10.7 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001811/1.324, allocations: 0.8853 MB / 1.416 GB, free: 10.11 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0003839/1.325, allocations: 171.4 kB / 1.416 GB, free: 10.11 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003372/1.328, allocations: 1.421 MB / 1.417 GB, free: 9.414 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0005305/1.329, allocations: 496.5 kB / 1.418 GB, free: 9.039 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.001159/1.33, allocations: 0.8779 MB / 1.419 GB, free: 8.426 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.005901/1.336, allocations: 2.807 MB / 1.421 GB, free: 6.5 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/1.336, allocations: 0 / 1.421 GB, free: 6.5 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.934e-06/1.336, allocations: 4 kB / 1.421 GB, free: 6.496 MB / 1.107 GB Notification: Performance of Transformations before backend: time 7.865e-05/1.336, allocations: 0 / 1.421 GB, free: 6.496 MB / 1.107 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.004289/1.34, allocations: 2.08 MB / 1.423 GB, free: 4.91 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/1.34, allocations: 10.09 kB / 1.423 GB, free: 4.91 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002758/1.343, allocations: 415 kB / 1.424 GB, free: 4.719 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001793/1.345, allocations: 1.036 MB / 1.425 GB, free: 3.902 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.364e-05/1.345, allocations: 102.2 kB / 1.425 GB, free: 3.855 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/1.345, allocations: 130 kB / 1.425 GB, free: 3.816 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/1.347, allocations: 1.532 MB / 1.426 GB, free: 2.418 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/1.347, allocations: 0 / 1.426 GB, free: 2.418 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001374/1.348, allocations: 60 kB / 1.426 GB, free: 2.359 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.571e-05/1.348, allocations: 32 kB / 1.427 GB, free: 2.328 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002768/1.35, allocations: 1.587 MB / 1.428 GB, free: 0.7344 MB / 1.107 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.008311/1.359, allocations: 5.312 MB / 1.433 GB, free: 11.11 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00277/1.361, allocations: 1.442 MB / 1.435 GB, free: 9.59 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008935/1.362, allocations: 440.6 kB / 1.435 GB, free: 9.156 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008331/1.363, allocations: 436.1 kB / 1.436 GB, free: 8.66 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001323/1.365, allocations: 0.6915 MB / 1.436 GB, free: 7.957 MB / 1.123 GB Notification: Performance of pre-optimization done (n=107): time 4.689e-06/1.365, allocations: 7.922 kB / 1.436 GB, free: 7.949 MB / 1.123 GB Notification: Performance of matching and sorting (n=107): time 0.00482/1.369, allocations: 1.665 MB / 1.438 GB, free: 6.254 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/1.369, allocations: 200.8 kB / 1.438 GB, free: 6.016 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/1.371, allocations: 0.8921 MB / 1.439 GB, free: 5.102 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.0001304/1.371, allocations: 49.7 kB / 1.439 GB, free: 5.047 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005536/1.372, allocations: 0.6142 MB / 1.44 GB, free: 4.426 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003228/1.372, allocations: 372.8 kB / 1.44 GB, free: 4.059 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003426/1.372, allocations: 214.9 kB / 1.44 GB, free: 3.844 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001302/1.373, allocations: 345.9 kB / 1.44 GB, free: 3.5 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000821/1.373, allocations: 398.4 kB / 1.441 GB, free: 3.109 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/1.374, allocations: 0.5708 MB / 1.441 GB, free: 2.488 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001843/1.376, allocations: 0.9527 MB / 1.442 GB, free: 1.492 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/1.376, allocations: 4 kB / 1.442 GB, free: 1.488 MB / 1.123 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002889/1.379, allocations: 1.235 MB / 1.443 GB, free: 248 kB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/1.379, allocations: 7.938 kB / 1.444 GB, free: 240 kB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/1.379, allocations: 4 kB / 1.444 GB, free: 236 kB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006721/1.38, allocations: 89.12 kB / 1.444 GB, free: 144 kB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/1.381, allocations: 255.6 kB / 1.444 GB, free: 15.89 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/1.383, allocations: 1.647 MB / 1.445 GB, free: 14.1 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/1.385, allocations: 137.9 kB / 1.446 GB, free: 13.96 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/1.385, allocations: 55.89 kB / 1.446 GB, free: 13.91 MB / 1.139 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.0006654/1.385, allocations: 356.6 kB / 1.446 GB, free: 13.55 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003458/1.386, allocations: 127.2 kB / 1.446 GB, free: 13.43 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003253/1.389, allocations: 1.437 MB / 1.447 GB, free: 11.98 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/1.389, allocations: 12 kB / 1.448 GB, free: 11.97 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/1.389, allocations: 0 / 1.448 GB, free: 11.97 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/1.389, allocations: 3.984 kB / 1.448 GB, free: 11.97 MB / 1.139 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.005363/1.394, allocations: 2.869 MB / 1.45 GB, free: 9.016 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/1.394, allocations: 0 / 1.45 GB, free: 9.016 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/1.395, allocations: 219.7 kB / 1.451 GB, free: 8.801 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004736/1.396, allocations: 72.8 kB / 1.451 GB, free: 8.727 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/1.396, allocations: 27.97 kB / 1.451 GB, free: 8.699 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002191/1.398, allocations: 1.693 MB / 1.452 GB, free: 6.852 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.398, allocations: 0 / 1.452 GB, free: 6.852 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002829/1.401, allocations: 1.327 MB / 1.454 GB, free: 5.508 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006826/1.402, allocations: 363.8 kB / 1.454 GB, free: 5.133 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002763/1.402, allocations: 27.95 kB / 1.454 GB, free: 5.105 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/1.403, allocations: 78.36 kB / 1.454 GB, free: 5.031 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001908/1.403, allocations: 88.81 kB / 1.454 GB, free: 4.941 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001158/1.403, allocations: 51.95 kB / 1.454 GB, free: 4.891 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.0009716/1.404, allocations: 0.615 MB / 1.455 GB, free: 4.266 MB / 1.139 GB Notification: Performance of sort global known variables: time 1e-07/1.404, allocations: 0 / 1.455 GB, free: 4.266 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.001567/1.406, allocations: 0.4948 MB / 1.455 GB, free: 3.77 MB / 1.139 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.001912/1.408, allocations: 0.715 MB / 1.456 GB, free: 3.234 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.002743/1.411, allocations: 1.101 MB / 1.457 GB, free: 2.125 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/1.411, allocations: 0 / 1.457 GB, free: 2.125 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.00136/1.412, allocations: 0.637 MB / 1.458 GB, free: 1.477 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002433/1.414, allocations: 0.5414 MB / 1.458 GB, free: 0.9609 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004952/1.419, allocations: 2.368 MB / 1.46 GB, free: 14.57 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00117/1.42, allocations: 1.213 MB / 1.462 GB, free: 13.32 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.001493/1.422, allocations: 385.9 kB / 1.462 GB, free: 12.94 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004365/1.422, allocations: 147.3 kB / 1.462 GB, free: 12.79 MB / 1.154 GB Notification: Performance of SimCode: time 7.12e-07/1.422, allocations: 0 / 1.462 GB, free: 12.79 MB / 1.154 GB Notification: Performance of Templates: time 0.0428/1.465, allocations: 24.85 MB / 1.486 GB, free: 4.254 MB / 1.17 GB make -j1 -f Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (rm -f Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches