Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.00912/0.00912, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.002217/0.002217, allocations: 193.6 kB / 16.67 MB, free: 5.969 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.471/1.471, 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 10.1.1-maint.10.0.x/package.mo): time 2.665/2.665, allocations: 437 MB / 0.7105 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 63.91 kB / 1.019 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3074, allocations: 151.6 MB / 1.167 GB, free: 6.816 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.7888/1.096, allocations: 176.8 MB / 1.339 GB, free: 12.58 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.01841/1.115, allocations: 12.82 MB / 1.352 GB, free: 3.406 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001692/1.116, allocations: 28.97 kB / 1.352 GB, free: 3.398 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001519/1.118, allocations: 472.7 kB / 1.352 GB, free: 3.102 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.003237/1.121, allocations: 1.029 MB / 1.353 GB, free: 2.484 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.005012/1.126, allocations: 1.868 MB / 1.355 GB, free: 1.508 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.003502/1.13, allocations: 2.538 MB / 1.358 GB, free: 264 kB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002319/1.132, allocations: 1.603 MB / 1.359 GB, free: 15.46 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004055/1.136, allocations: 1.417 MB / 1.361 GB, free: 14.84 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001529/1.138, allocations: 0.8814 MB / 1.361 GB, free: 14.4 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0003261/1.138, allocations: 170.8 kB / 1.362 GB, free: 14.4 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003483/1.141, allocations: 1.425 MB / 1.363 GB, free: 13.93 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.000552/1.142, allocations: 491.2 kB / 1.363 GB, free: 13.64 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.001253/1.143, allocations: 0.8761 MB / 1.364 GB, free: 13.09 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.006043/1.149, allocations: 2.812 MB / 1.367 GB, free: 11.45 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/1.149, allocations: 4 kB / 1.367 GB, free: 11.44 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.883e-06/1.149, allocations: 1.125 kB / 1.367 GB, free: 11.44 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.485e-05/1.149, allocations: 0 / 1.367 GB, free: 11.44 MB / 1.045 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.00482/1.154, allocations: 2.075 MB / 1.369 GB, free: 9.859 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/1.154, allocations: 12.47 kB / 1.369 GB, free: 9.855 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002788/1.157, allocations: 420 kB / 1.369 GB, free: 9.66 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002082/1.159, allocations: 1.037 MB / 1.37 GB, free: 8.844 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.385e-05/1.159, allocations: 102 kB / 1.371 GB, free: 8.797 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001826/1.16, allocations: 131.7 kB / 1.371 GB, free: 8.754 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003508/1.163, allocations: 1.528 MB / 1.372 GB, free: 7.773 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.909e-05/1.163, allocations: 1.375 kB / 1.372 GB, free: 7.773 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001695/1.163, allocations: 59.12 kB / 1.372 GB, free: 7.73 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.934e-05/1.163, allocations: 33 kB / 1.372 GB, free: 7.73 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003716/1.167, allocations: 1.585 MB / 1.374 GB, free: 6.965 MB / 1.045 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.008629/1.176, allocations: 5.302 MB / 1.379 GB, free: 2.48 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002773/1.179, allocations: 1.529 MB / 1.38 GB, free: 1.477 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000863/1.179, allocations: 476.1 kB / 1.381 GB, free: 1.238 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007836/1.18, allocations: 429.4 kB / 1.381 GB, free: 0.8125 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001254/1.182, allocations: 0.692 MB / 1.382 GB, free: 392 kB / 1.045 GB Notification: Performance of pre-optimization done (n=107): time 2.715e-06/1.182, allocations: 4 kB / 1.382 GB, free: 388 kB / 1.045 GB Notification: Performance of matching and sorting (n=107): time 0.0045/1.186, allocations: 1.665 MB / 1.384 GB, free: 15.5 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/1.186, allocations: 197.5 kB / 1.384 GB, free: 15.27 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/1.188, allocations: 0.8996 MB / 1.385 GB, free: 14.75 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0001417/1.188, allocations: 49.36 kB / 1.385 GB, free: 14.71 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000511/1.188, allocations: 0.6097 MB / 1.385 GB, free: 14.16 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003309/1.189, allocations: 378.2 kB / 1.386 GB, free: 13.84 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003605/1.189, allocations: 209.6 kB / 1.386 GB, free: 13.71 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001261/1.189, allocations: 346.3 kB / 1.386 GB, free: 13.38 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008066/1.19, allocations: 402.2 kB / 1.387 GB, free: 13.18 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009485/1.191, allocations: 0.5682 MB / 1.387 GB, free: 12.8 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001694/1.193, allocations: 0.9555 MB / 1.388 GB, free: 12.23 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/1.193, allocations: 0 / 1.388 GB, free: 12.23 MB / 1.061 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002731/1.195, allocations: 1.246 MB / 1.389 GB, free: 11.6 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/1.195, allocations: 11.41 kB / 1.389 GB, free: 11.59 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/1.195, allocations: 4.75 kB / 1.389 GB, free: 11.59 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005798/1.196, allocations: 88.42 kB / 1.389 GB, free: 11.55 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/1.197, allocations: 254.5 kB / 1.39 GB, free: 11.49 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002081/1.199, allocations: 1.655 MB / 1.391 GB, free: 9.867 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/1.2, allocations: 136.5 kB / 1.391 GB, free: 9.777 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/1.2, allocations: 56.03 kB / 1.391 GB, free: 9.754 MB / 1.061 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.0006329/1.201, allocations: 340.4 kB / 1.392 GB, free: 9.5 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002324/1.201, allocations: 127.9 kB / 1.392 GB, free: 9.434 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00314/1.204, allocations: 1.441 MB / 1.393 GB, free: 8.621 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/1.204, allocations: 10.12 kB / 1.393 GB, free: 8.621 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/1.204, allocations: 0 / 1.393 GB, free: 8.621 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/1.204, allocations: 6.734 kB / 1.393 GB, free: 8.617 MB / 1.061 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.004703/1.209, allocations: 2.868 MB / 1.396 GB, free: 6.691 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/1.209, allocations: 3.984 kB / 1.396 GB, free: 6.688 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009812/1.21, allocations: 223.8 kB / 1.396 GB, free: 6.633 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004382/1.211, allocations: 66.73 kB / 1.396 GB, free: 6.602 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.488e-05/1.211, allocations: 37.97 kB / 1.396 GB, free: 6.574 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001877/1.213, allocations: 1.674 MB / 1.398 GB, free: 4.941 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/1.213, allocations: 0 / 1.398 GB, free: 4.941 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0027/1.215, allocations: 1.328 MB / 1.399 GB, free: 4.215 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006188/1.216, allocations: 362.4 kB / 1.4 GB, free: 3.91 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002542/1.216, allocations: 25.09 kB / 1.4 GB, free: 3.891 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/1.217, allocations: 87.47 kB / 1.4 GB, free: 3.844 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/1.217, allocations: 80.69 kB / 1.4 GB, free: 3.801 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/1.218, allocations: 56.55 kB / 1.4 GB, free: 3.777 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0008369/1.218, allocations: 0.6156 MB / 1.401 GB, free: 3.422 MB / 1.061 GB Notification: Performance of sort global known variables: time 3.9e-07/1.218, allocations: 0 / 1.401 GB, free: 3.422 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001403/1.22, allocations: 0.5 MB / 1.401 GB, free: 3.199 MB / 1.061 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.001647/1.221, allocations: 0.704 MB / 1.402 GB, free: 2.672 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.002376/1.224, allocations: 1.155 MB / 1.403 GB, free: 1.508 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/1.224, allocations: 4.75 kB / 1.403 GB, free: 1.504 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001239/1.225, allocations: 0.672 MB / 1.404 GB, free: 0.8203 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002317/1.227, allocations: 0.5342 MB / 1.404 GB, free: 320 kB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004754/1.232, allocations: 2.381 MB / 1.406 GB, free: 13.9 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008201/1.233, allocations: 1.213 MB / 1.408 GB, free: 12.65 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.001403/1.234, allocations: 381.9 kB / 1.408 GB, free: 12.28 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003843/1.235, allocations: 147.4 kB / 1.408 GB, free: 12.14 MB / 1.076 GB Notification: Performance of SimCode: time 6.81e-07/1.235, allocations: 0 / 1.408 GB, free: 12.14 MB / 1.076 GB Notification: Performance of Templates: time 0.04253/1.277, allocations: 24.73 MB / 1.432 GB, free: 3.738 MB / 1.092 GB make -j1 -f Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (rm -f Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches