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.0008623/0.0008623, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 180.2 kB / 16.92 MB, free: 6.652 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.413/1.413, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.833/2.833, allocations: 462.6 MB / 0.7371 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003666/0.000367, allocations: 15.7 kB / 0.9034 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3376, allocations: 159.6 MB / 1.059 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.2014/0.5391, allocations: 172.2 MB / 1.227 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01935/0.5585, allocations: 12.67 MB / 1.24 GB, free: 11.41 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001669/0.5602, allocations: 31.81 kB / 1.24 GB, free: 11.38 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001727/0.562, allocations: 377.5 kB / 1.24 GB, free: 11 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.003992/0.566, allocations: 0.9304 MB / 1.241 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005333/0.5714, allocations: 1.662 MB / 1.243 GB, free: 8.418 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004128/0.5755, allocations: 2.867 MB / 1.246 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002844/0.5784, allocations: 1.366 MB / 1.247 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005246/0.5836, allocations: 1.164 MB / 1.248 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001561/0.5852, allocations: 0.7269 MB / 1.249 GB, free: 2.254 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004625/0.5857, allocations: 52 kB / 1.249 GB, free: 2.203 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003539/0.5893, allocations: 1.427 MB / 1.25 GB, free: 0.7734 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006494/0.5899, allocations: 342.6 kB / 1.25 GB, free: 448 kB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.7367/1.327, allocations: 0.7254 MB / 1.251 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.004517/1.331, allocations: 2.013 MB / 1.253 GB, free: 6.766 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/1.331, allocations: 1.125 kB / 1.253 GB, free: 6.766 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.887e-06/1.331, allocations: 0 / 1.253 GB, free: 6.766 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.93e-05/1.331, allocations: 0 / 1.253 GB, free: 6.766 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.004128/1.335, allocations: 1.698 MB / 1.255 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.661e-05/1.335, allocations: 9.281 kB / 1.255 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002872/1.338, allocations: 414.5 kB / 1.255 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001966/1.34, allocations: 0.991 MB / 1.256 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/1.34, allocations: 101.2 kB / 1.256 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001755/1.341, allocations: 131.8 kB / 1.256 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00302/1.344, allocations: 1.533 MB / 1.258 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.656e-05/1.344, allocations: 0 / 1.258 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/1.344, allocations: 59.97 kB / 1.258 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.602e-05/1.344, allocations: 33.66 kB / 1.258 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002885/1.347, allocations: 1.587 MB / 1.26 GB, free: 5.164 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.008868/1.356, allocations: 5.356 MB / 1.265 GB, free: 18.63 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/1.358, allocations: 1.526 MB / 1.266 GB, free: 18.21 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000845/1.359, allocations: 480.4 kB / 1.267 GB, free: 18.2 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008521/1.36, allocations: 441 kB / 1.267 GB, free: 17.82 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001414/1.361, allocations: 0.6958 MB / 1.268 GB, free: 17.75 MB / 1.014 GB Notification: Performance of pre-optimization done (n=107): time 5.41e-06/1.361, allocations: 0 / 1.268 GB, free: 17.75 MB / 1.014 GB Notification: Performance of matching and sorting (n=107): time 0.005443/1.367, allocations: 1.681 MB / 1.269 GB, free: 17.53 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001488/1.367, allocations: 201.1 kB / 1.27 GB, free: 17.31 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/1.369, allocations: 0.8949 MB / 1.271 GB, free: 17.15 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001711/1.37, allocations: 49.83 kB / 1.271 GB, free: 17.12 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006613/1.37, allocations: 0.5914 MB / 1.271 GB, free: 16.87 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003841/1.371, allocations: 353.8 kB / 1.272 GB, free: 16.65 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/1.371, allocations: 90.34 kB / 1.272 GB, free: 16.63 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001878/1.371, allocations: 343.8 kB / 1.272 GB, free: 16.33 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009898/1.372, allocations: 404.6 kB / 1.272 GB, free: 16.32 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/1.373, allocations: 0.5718 MB / 1.273 GB, free: 16.18 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/1.375, allocations: 0.9661 MB / 1.274 GB, free: 16.04 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/1.375, allocations: 0.5938 kB / 1.274 GB, free: 16.04 MB / 1.014 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004052/1.379, allocations: 1.242 MB / 1.275 GB, free: 15.91 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.488e-05/1.379, allocations: 7.312 kB / 1.275 GB, free: 15.91 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.931e-05/1.379, allocations: 2.938 kB / 1.275 GB, free: 15.91 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007316/1.38, allocations: 92.39 kB / 1.275 GB, free: 15.89 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/1.382, allocations: 260.4 kB / 1.275 GB, free: 15.89 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00235/1.384, allocations: 1.55 MB / 1.277 GB, free: 14.59 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/1.386, allocations: 167.5 kB / 1.277 GB, free: 14.53 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001853/1.386, allocations: 50.39 kB / 1.277 GB, free: 14.53 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.001163/1.387, allocations: 343.7 kB / 1.277 GB, free: 14.41 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004422/1.387, allocations: 123.7 kB / 1.278 GB, free: 14.35 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003876/1.391, allocations: 1.441 MB / 1.279 GB, free: 14.23 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.12e-05/1.391, allocations: 11.75 kB / 1.279 GB, free: 14.23 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/1.391, allocations: 0 / 1.279 GB, free: 14.23 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.991e-05/1.391, allocations: 10.86 kB / 1.279 GB, free: 14.23 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.006796/1.398, allocations: 2.887 MB / 1.282 GB, free: 13.71 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/1.398, allocations: 0 / 1.282 GB, free: 13.71 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/1.399, allocations: 222.3 kB / 1.282 GB, free: 13.71 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005507/1.4, allocations: 85.52 kB / 1.282 GB, free: 13.7 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/1.4, allocations: 34.53 kB / 1.282 GB, free: 13.7 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002019/1.402, allocations: 1.563 MB / 1.284 GB, free: 12.4 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/1.402, allocations: 0 / 1.284 GB, free: 12.4 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003388/1.405, allocations: 1.333 MB / 1.285 GB, free: 12.16 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/1.406, allocations: 371.2 kB / 1.285 GB, free: 11.99 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004495/1.407, allocations: 24.53 kB / 1.285 GB, free: 11.99 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001458/1.408, allocations: 125.1 kB / 1.285 GB, free: 11.97 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002347/1.409, allocations: 86.95 kB / 1.286 GB, free: 11.97 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/1.409, allocations: 55.52 kB / 1.286 GB, free: 11.97 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001375/1.41, allocations: 0.6161 MB / 1.286 GB, free: 11.86 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.9e-07/1.41, allocations: 0 / 1.286 GB, free: 11.86 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002339/1.413, allocations: 497.8 kB / 1.287 GB, free: 11.79 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.002593/1.415, allocations: 0.7082 MB / 1.287 GB, free: 11.58 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.003146/1.418, allocations: 1.16 MB / 1.288 GB, free: 11.43 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 6.762e-06/1.418, allocations: 4.906 kB / 1.288 GB, free: 11.43 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001538/1.42, allocations: 0.6828 MB / 1.289 GB, free: 11.31 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/1.423, allocations: 500 kB / 1.29 GB, free: 11.28 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006352/1.43, allocations: 3.037 MB / 1.293 GB, free: 9.75 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001343/1.431, allocations: 1.209 MB / 1.294 GB, free: 9.016 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000754/1.432, allocations: 157.5 kB / 1.294 GB, free: 9.004 MB / 1.014 GB Notification: Performance of SimCode: time 8.61e-07/1.432, allocations: 1.344 kB / 1.294 GB, free: 9.004 MB / 1.014 GB Notification: Performance of Templates: time 0.04907/1.481, allocations: 28.21 MB / 1.321 GB, free: 2.492 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