Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001776/0.001776, allocations: 81.55 kB / 19.76 MB, free: 2.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003165/0.003165, allocations: 160.5 kB / 23.01 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.774/2.774, allocations: 377.9 MB / 0.6228 GB, free: 12.57 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|senTem.T|senRelHum.phi|senMasFra.X",fileNamePrefix="Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|senTem.T|senRelHum.phi|senMasFra.X",fileNamePrefix="Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002359/0.002359, allocations: 67.84 kB / 0.982 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.975/0.9773, allocations: 176.1 MB / 1.154 GB, free: 33.31 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.205/1.182, allocations: 156 MB / 1.306 GB, free: 8.051 MB / 1.154 GB Notification: Performance of NFInst.instExpressions: time 0.01811/1.2, allocations: 12.06 MB / 1.318 GB, free: 14.65 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001293/1.202, allocations: 44.44 kB / 1.318 GB, free: 14.62 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.001345/1.203, allocations: 466.2 kB / 1.319 GB, free: 14.23 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 0.003022/1.206, allocations: 1.075 MB / 1.32 GB, free: 13.4 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.004982/1.211, allocations: 1.896 MB / 1.321 GB, free: 11.99 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.003349/1.214, allocations: 2.549 MB / 1.324 GB, free: 10.45 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002011/1.216, allocations: 1.279 MB / 1.325 GB, free: 9.203 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004549/1.221, allocations: 1.653 MB / 1.327 GB, free: 7.582 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001262/1.222, allocations: 0.8243 MB / 1.328 GB, free: 6.754 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 0.0002737/1.223, allocations: 175.9 kB / 1.328 GB, free: 6.582 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002748/1.225, allocations: 1.287 MB / 1.329 GB, free: 5.293 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 0.0005194/1.226, allocations: 0.4946 MB / 1.33 GB, free: 4.797 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 0.000846/1.227, allocations: 0.7156 MB / 1.33 GB, free: 4.078 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.004538/1.231, allocations: 2.845 MB / 1.333 GB, free: 1.223 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/1.231, allocations: 0 / 1.333 GB, free: 1.223 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.673e-06/1.231, allocations: 4 kB / 1.333 GB, free: 1.219 MB / 1.17 GB Notification: Performance of Transformations before backend: time 4.504e-05/1.231, allocations: 0 / 1.333 GB, free: 1.219 MB / 1.17 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.003875/1.235, allocations: 2.028 MB / 1.335 GB, free: 15.14 MB / 1.186 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/1.235, allocations: 8.031 kB / 1.335 GB, free: 15.14 MB / 1.186 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003403/1.239, allocations: 466.5 kB / 1.335 GB, free: 14.68 MB / 1.186 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/1.24, allocations: 0.9594 MB / 1.336 GB, free: 13.69 MB / 1.186 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/1.241, allocations: 98.72 kB / 1.336 GB, free: 13.59 MB / 1.186 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/1.241, allocations: 135.9 kB / 1.337 GB, free: 13.46 MB / 1.186 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003101/1.244, allocations: 2.023 MB / 1.339 GB, free: 11.23 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.323e-05/1.244, allocations: 7.875 kB / 1.339 GB, free: 11.23 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/1.244, allocations: 60 kB / 1.339 GB, free: 11.17 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.327e-05/1.244, allocations: 39.98 kB / 1.339 GB, free: 11.13 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002884/1.247, allocations: 1.536 MB / 1.34 GB, free: 9.586 MB / 1.186 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.006824/1.254, allocations: 3.771 MB / 1.344 GB, free: 5.734 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002582/1.256, allocations: 1.138 MB / 1.345 GB, free: 4.594 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008789/1.257, allocations: 440.1 kB / 1.345 GB, free: 4.16 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006243/1.258, allocations: 112.9 kB / 1.345 GB, free: 4.051 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001522/1.259, allocations: 1.046 MB / 1.347 GB, free: 2.902 MB / 1.186 GB Notification: Performance of pre-optimization done (n=107): time 3.156e-06/1.259, allocations: 0 / 1.347 GB, free: 2.902 MB / 1.186 GB Notification: Performance of matching and sorting (n=107): time 0.00455/1.264, allocations: 1.59 MB / 1.348 GB, free: 1.305 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/1.264, allocations: 192.9 kB / 1.348 GB, free: 1.074 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/1.265, allocations: 0.7668 MB / 1.349 GB, free: 304 kB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 9.689e-05/1.265, allocations: 49.7 kB / 1.349 GB, free: 248 kB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005695/1.266, allocations: 0.6181 MB / 1.35 GB, free: 15.61 MB / 1.201 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003314/1.266, allocations: 368.8 kB / 1.35 GB, free: 15.25 MB / 1.201 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003382/1.266, allocations: 214.8 kB / 1.35 GB, free: 15.04 MB / 1.201 GB Notification: Performance of setup shared object (initialization): time 0.0001666/1.267, allocations: 349.9 kB / 1.351 GB, free: 14.69 MB / 1.201 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008333/1.267, allocations: 402.3 kB / 1.351 GB, free: 14.3 MB / 1.201 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/1.269, allocations: 0.7464 MB / 1.352 GB, free: 13.46 MB / 1.201 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001897/1.27, allocations: 0.9605 MB / 1.353 GB, free: 12.45 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/1.27, allocations: 0 / 1.353 GB, free: 12.45 MB / 1.201 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002947/1.273, allocations: 1.22 MB / 1.354 GB, free: 11.22 MB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/1.273, allocations: 15.92 kB / 1.354 GB, free: 11.21 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/1.273, allocations: 8 kB / 1.354 GB, free: 11.2 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006226/1.274, allocations: 88.94 kB / 1.354 GB, free: 11.11 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/1.275, allocations: 255.6 kB / 1.354 GB, free: 10.86 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/1.277, allocations: 1.516 MB / 1.356 GB, free: 9.234 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/1.279, allocations: 130.2 kB / 1.356 GB, free: 9.109 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/1.279, allocations: 47.97 kB / 1.356 GB, free: 9.062 MB / 1.201 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.0006189/1.279, allocations: 348.1 kB / 1.356 GB, free: 8.715 MB / 1.201 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002361/1.279, allocations: 115.3 kB / 1.356 GB, free: 8.602 MB / 1.201 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003344/1.283, allocations: 1.416 MB / 1.358 GB, free: 7.172 MB / 1.201 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/1.283, allocations: 15.94 kB / 1.358 GB, free: 7.156 MB / 1.201 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/1.283, allocations: 0 / 1.358 GB, free: 7.156 MB / 1.201 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/1.283, allocations: 11.98 kB / 1.358 GB, free: 7.145 MB / 1.201 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.004768/1.288, allocations: 2.419 MB / 1.36 GB, free: 4.684 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/1.288, allocations: 0 / 1.36 GB, free: 4.684 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/1.289, allocations: 219.7 kB / 1.36 GB, free: 4.469 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000459/1.289, allocations: 72.78 kB / 1.36 GB, free: 4.395 MB / 1.201 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.419e-05/1.289, allocations: 35.97 kB / 1.36 GB, free: 4.359 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002026/1.291, allocations: 1.536 MB / 1.362 GB, free: 2.715 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/1.291, allocations: 0 / 1.362 GB, free: 2.715 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002828/1.294, allocations: 1.326 MB / 1.363 GB, free: 1.375 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005848/1.295, allocations: 270.8 kB / 1.363 GB, free: 1.109 MB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/1.295, allocations: 24 kB / 1.363 GB, free: 1.086 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009178/1.296, allocations: 81.8 kB / 1.363 GB, free: 1.008 MB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/1.296, allocations: 92.91 kB / 1.364 GB, free: 0.9141 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/1.296, allocations: 51.95 kB / 1.364 GB, free: 0.8633 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.0007608/1.297, allocations: 0.5302 MB / 1.364 GB, free: 344 kB / 1.201 GB Notification: Performance of sort global known variables: time 7e-08/1.297, allocations: 0 / 1.364 GB, free: 344 kB / 1.201 GB Notification: Performance of remove unused functions: time 0.001359/1.298, allocations: 0.5104 MB / 1.365 GB, free: 15.82 MB / 1.217 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.002324/1.3, allocations: 0.7344 MB / 1.365 GB, free: 15.29 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.002546/1.303, allocations: 1.105 MB / 1.366 GB, free: 14.18 MB / 1.217 GB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/1.303, allocations: 4 kB / 1.366 GB, free: 14.17 MB / 1.217 GB Notification: Performance of simCode: created simulation system equations: time 0.001283/1.304, allocations: 0.6367 MB / 1.367 GB, free: 13.52 MB / 1.217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/1.306, allocations: 456 kB / 1.367 GB, free: 13.11 MB / 1.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004571/1.311, allocations: 2.39 MB / 1.37 GB, free: 10.68 MB / 1.217 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008165/1.312, allocations: 0.6205 MB / 1.37 GB, free: 10.02 MB / 1.217 GB Notification: Performance of simCode: alias equations: time 0.001253/1.313, allocations: 384.5 kB / 1.371 GB, free: 9.645 MB / 1.217 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003889/1.313, allocations: 140.4 kB / 1.371 GB, free: 9.504 MB / 1.217 GB Notification: Performance of SimCode: time 7.61e-07/1.313, allocations: 0 / 1.371 GB, free: 9.504 MB / 1.217 GB Notification: Performance of Templates: time 0.04008/1.353, allocations: 22.8 MB / 1.393 GB, free: 3.152 MB / 1.232 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.186315039056353]