Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001321/0.001321, allocations: 108.2 kB / 15.99 MB, free: 6.348 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.00126/0.00126, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.353/1.353, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.222/2.222, allocations: 390.3 MB / 0.665 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 63.44 kB / 0.8127 GB, free: 32.55 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.275, allocations: 140.4 MB / 0.9498 GB, free: 9.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.7348/1.01, allocations: 173.7 MB / 1.119 GB, free: 4.973 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01706/1.027, allocations: 12.58 MB / 1.132 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00194/1.029, allocations: 30.72 kB / 1.132 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001619/1.031, allocations: 373.3 kB / 1.132 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004005/1.035, allocations: 0.8791 MB / 1.133 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.006219/1.041, allocations: 1.695 MB / 1.135 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.004264/1.045, allocations: 2.411 MB / 1.137 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003083/1.048, allocations: 1.619 MB / 1.138 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005938/1.054, allocations: 1.395 MB / 1.14 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001834/1.056, allocations: 0.8866 MB / 1.141 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0005194/1.057, allocations: 171.8 kB / 1.141 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003702/1.06, allocations: 1.434 MB / 1.142 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000697/1.061, allocations: 494.8 kB / 1.143 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001365/1.062, allocations: 0.8558 MB / 1.144 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.004015/1.066, allocations: 2.044 MB / 1.146 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/1.066, allocations: 0 / 1.146 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/1.066, allocations: 1.219 kB / 1.146 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.268e-05/1.067, allocations: 0 / 1.146 GB, free: 2.281 MB / 0.8575 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.004598/1.071, allocations: 2.008 MB / 1.148 GB, free: 17.01 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/1.071, allocations: 9.344 kB / 1.148 GB, free: 17.01 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00318/1.074, allocations: 402.7 kB / 1.148 GB, free: 16.91 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002056/1.076, allocations: 0.9939 MB / 1.149 GB, free: 16.31 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.148e-05/1.077, allocations: 106.4 kB / 1.149 GB, free: 16.26 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002136/1.077, allocations: 132.2 kB / 1.149 GB, free: 16.22 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002951/1.08, allocations: 1.525 MB / 1.151 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/1.08, allocations: 0 / 1.151 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001615/1.08, allocations: 62.8 kB / 1.151 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.578e-05/1.08, allocations: 33.16 kB / 1.151 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003054/1.083, allocations: 1.584 MB / 1.152 GB, free: 15.06 MB / 0.8731 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.009045/1.092, allocations: 5.064 MB / 1.157 GB, free: 11.78 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002828/1.095, allocations: 1.506 MB / 1.159 GB, free: 10.94 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009608/1.096, allocations: 495.4 kB / 1.159 GB, free: 10.74 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008666/1.097, allocations: 430.7 kB / 1.16 GB, free: 10.36 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001476/1.098, allocations: 0.6921 MB / 1.16 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=107): time 4.097e-06/1.098, allocations: 0 / 1.16 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of matching and sorting (n=107): time 0.004855/1.103, allocations: 1.666 MB / 1.162 GB, free: 9.414 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/1.103, allocations: 195 kB / 1.162 GB, free: 9.188 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/1.105, allocations: 0.8951 MB / 1.163 GB, free: 8.809 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001782/1.105, allocations: 49.14 kB / 1.163 GB, free: 8.762 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005884/1.106, allocations: 0.5952 MB / 1.164 GB, free: 8.297 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003669/1.106, allocations: 356.2 kB / 1.164 GB, free: 8.023 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003983/1.106, allocations: 219.3 kB / 1.164 GB, free: 7.926 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001436/1.107, allocations: 346.1 kB / 1.164 GB, free: 7.605 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008341/1.107, allocations: 395.8 kB / 1.165 GB, free: 7.465 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/1.109, allocations: 0.5734 MB / 1.165 GB, free: 7.152 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001805/1.11, allocations: 0.957 MB / 1.166 GB, free: 6.66 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/1.11, allocations: 0 / 1.166 GB, free: 6.66 MB / 0.8731 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003031/1.113, allocations: 1.229 MB / 1.168 GB, free: 6.176 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/1.113, allocations: 12.31 kB / 1.168 GB, free: 6.172 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/1.113, allocations: 2.562 kB / 1.168 GB, free: 6.172 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006248/1.114, allocations: 87.77 kB / 1.168 GB, free: 6.152 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/1.115, allocations: 254.2 kB / 1.168 GB, free: 6.129 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002244/1.117, allocations: 1.652 MB / 1.169 GB, free: 4.586 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/1.119, allocations: 153.2 kB / 1.17 GB, free: 4.512 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001873/1.119, allocations: 57.12 kB / 1.17 GB, free: 4.496 MB / 0.8731 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.0008648/1.12, allocations: 351.8 kB / 1.17 GB, free: 4.246 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004728/1.121, allocations: 124.2 kB / 1.17 GB, free: 4.184 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003619/1.124, allocations: 1.427 MB / 1.172 GB, free: 3.605 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/1.124, allocations: 20.56 kB / 1.172 GB, free: 3.598 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/1.124, allocations: 0 / 1.172 GB, free: 3.598 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/1.124, allocations: 6.328 kB / 1.172 GB, free: 3.598 MB / 0.8731 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.005821/1.13, allocations: 2.875 MB / 1.174 GB, free: 2.035 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/1.13, allocations: 0 / 1.174 GB, free: 2.035 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/1.131, allocations: 224 kB / 1.175 GB, free: 1.98 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004638/1.132, allocations: 70.08 kB / 1.175 GB, free: 1.945 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001115/1.132, allocations: 34.75 kB / 1.175 GB, free: 1.922 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002295/1.134, allocations: 1.674 MB / 1.176 GB, free: 304 kB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/1.134, allocations: 0 / 1.176 GB, free: 304 kB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003102/1.137, allocations: 1.328 MB / 1.178 GB, free: 15.57 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009031/1.138, allocations: 359.2 kB / 1.178 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003648/1.138, allocations: 21.03 kB / 1.178 GB, free: 15.25 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/1.14, allocations: 110 kB / 1.178 GB, free: 15.19 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/1.14, allocations: 80.36 kB / 1.178 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/1.14, allocations: 56.45 kB / 1.178 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001114/1.141, allocations: 0.6133 MB / 1.179 GB, free: 14.77 MB / 0.8887 GB Notification: Performance of sort global known variables: time 3.1e-07/1.141, allocations: 4 kB / 1.179 GB, free: 14.77 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001702/1.143, allocations: 483.2 kB / 1.179 GB, free: 14.63 MB / 0.8887 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.001942/1.145, allocations: 0.7016 MB / 1.18 GB, free: 14.32 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00405/1.149, allocations: 1.468 MB / 1.181 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/1.149, allocations: 0 / 1.181 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001452/1.15, allocations: 0.6835 MB / 1.182 GB, free: 13.32 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003113/1.154, allocations: 0.5198 MB / 1.183 GB, free: 13.05 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00699/1.161, allocations: 3.109 MB / 1.186 GB, free: 10.98 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/1.162, allocations: 1.209 MB / 1.187 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008057/1.163, allocations: 158.3 kB / 1.187 GB, free: 9.996 MB / 0.8887 GB Notification: Performance of SimCode: time 1.032e-06/1.163, allocations: 0 / 1.187 GB, free: 9.996 MB / 0.8887 GB Notification: Performance of Templates: time 0.04407/1.207, allocations: 28.17 MB / 1.214 GB, free: 6.465 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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