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.001246/0.001246, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.00118/0.00118, allocations: 191 kB / 17.29 MB, free: 5.516 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.321/1.321, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.439/2.439, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 71.56 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2874, allocations: 153 MB / 1.027 GB, free: 2.047 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.7596/1.047, allocations: 176.8 MB / 1.199 GB, free: 5.895 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01784/1.065, allocations: 12.8 MB / 1.212 GB, free: 11.54 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001916/1.067, allocations: 37.31 kB / 1.212 GB, free: 11.53 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001626/1.069, allocations: 468.9 kB / 1.212 GB, free: 11.13 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.00351/1.072, allocations: 1.025 MB / 1.213 GB, free: 10.33 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.004931/1.077, allocations: 1.879 MB / 1.215 GB, free: 8.926 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.003636/1.081, allocations: 2.541 MB / 1.218 GB, free: 7.406 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002417/1.083, allocations: 1.59 MB / 1.219 GB, free: 6.355 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004331/1.088, allocations: 1.418 MB / 1.221 GB, free: 5.539 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/1.089, allocations: 0.8872 MB / 1.221 GB, free: 4.945 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.000524/1.09, allocations: 170.2 kB / 1.222 GB, free: 4.945 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003467/1.093, allocations: 1.425 MB / 1.223 GB, free: 4.25 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0006298/1.094, allocations: 491.8 kB / 1.223 GB, free: 3.879 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001131/1.095, allocations: 0.8878 MB / 1.224 GB, free: 3.031 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.004186/1.099, allocations: 2.792 MB / 1.227 GB, free: 236 kB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/1.099, allocations: 0 / 1.227 GB, free: 236 kB / 0.92 GB Notification: Performance of FrontEnd: time 1.914e-06/1.099, allocations: 0 / 1.227 GB, free: 236 kB / 0.92 GB Notification: Performance of Transformations before backend: time 3.733e-05/1.099, allocations: 0 / 1.227 GB, free: 236 kB / 0.92 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.003561/1.103, allocations: 2.025 MB / 1.229 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/1.103, allocations: 8.75 kB / 1.229 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002704/1.106, allocations: 413.5 kB / 1.229 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001765/1.107, allocations: 1.023 MB / 1.23 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.198e-05/1.108, allocations: 102.7 kB / 1.231 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001705/1.108, allocations: 136 kB / 1.231 GB, free: 12.43 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002545/1.11, allocations: 1.52 MB / 1.232 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/1.11, allocations: 0 / 1.232 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000128/1.11, allocations: 60 kB / 1.232 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.84e-05/1.11, allocations: 32 kB / 1.232 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002655/1.113, allocations: 1.587 MB / 1.234 GB, free: 9.148 MB / 0.9356 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.00785/1.121, allocations: 5.303 MB / 1.239 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002598/1.124, allocations: 1.523 MB / 1.24 GB, free: 1.918 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008267/1.124, allocations: 479.4 kB / 1.241 GB, free: 1.449 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007729/1.125, allocations: 429.3 kB / 1.241 GB, free: 0.957 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001228/1.127, allocations: 0.6957 MB / 1.242 GB, free: 252 kB / 0.9356 GB Notification: Performance of pre-optimization done (n=107): time 3.356e-06/1.127, allocations: 0 / 1.242 GB, free: 252 kB / 0.9356 GB Notification: Performance of matching and sorting (n=107): time 0.004497/1.131, allocations: 1.66 MB / 1.244 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/1.131, allocations: 208.8 kB / 1.244 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001326/1.133, allocations: 0.892 MB / 1.245 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001303/1.133, allocations: 49.7 kB / 1.245 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005554/1.133, allocations: 0.5897 MB / 1.245 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003391/1.134, allocations: 354.9 kB / 1.246 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003682/1.134, allocations: 214.7 kB / 1.246 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001421/1.134, allocations: 349.9 kB / 1.246 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007849/1.135, allocations: 398.4 kB / 1.247 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009241/1.136, allocations: 0.5668 MB / 1.247 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/1.138, allocations: 0.9566 MB / 1.248 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/1.138, allocations: 0.875 kB / 1.248 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002727/1.14, allocations: 1.239 MB / 1.249 GB, free: 8.566 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/1.14, allocations: 4 kB / 1.249 GB, free: 8.562 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/1.14, allocations: 4 kB / 1.249 GB, free: 8.559 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006014/1.141, allocations: 89.17 kB / 1.249 GB, free: 8.469 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/1.142, allocations: 255.7 kB / 1.25 GB, free: 8.219 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/1.144, allocations: 1.642 MB / 1.251 GB, free: 6.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/1.146, allocations: 149 kB / 1.251 GB, free: 6.285 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/1.146, allocations: 48.05 kB / 1.251 GB, free: 6.238 MB / 0.9512 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.0008008/1.146, allocations: 339.3 kB / 1.252 GB, free: 5.898 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002933/1.147, allocations: 130.5 kB / 1.252 GB, free: 5.77 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003181/1.15, allocations: 1.437 MB / 1.253 GB, free: 4.324 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/1.15, allocations: 12 kB / 1.253 GB, free: 4.312 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/1.15, allocations: 0 / 1.253 GB, free: 4.312 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/1.15, allocations: 7.984 kB / 1.253 GB, free: 4.305 MB / 0.9512 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.004981/1.155, allocations: 2.868 MB / 1.256 GB, free: 1.355 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/1.155, allocations: 4 kB / 1.256 GB, free: 1.352 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009996/1.156, allocations: 219.7 kB / 1.256 GB, free: 1.137 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004466/1.156, allocations: 72.73 kB / 1.256 GB, free: 1.062 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.013e-05/1.157, allocations: 35.97 kB / 1.256 GB, free: 1.027 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001942/1.159, allocations: 1.677 MB / 1.258 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/1.159, allocations: 144 / 1.258 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002797/1.161, allocations: 1.326 MB / 1.259 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007203/1.162, allocations: 355.1 kB / 1.26 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001968/1.162, allocations: 24 kB / 1.26 GB, free: 13.47 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009566/1.163, allocations: 79.91 kB / 1.26 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/1.163, allocations: 88.83 kB / 1.26 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/1.164, allocations: 56.02 kB / 1.26 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0008965/1.164, allocations: 0.6111 MB / 1.261 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.8e-07/1.164, allocations: 4 kB / 1.261 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001359/1.166, allocations: 0.4911 MB / 1.261 GB, free: 12.13 MB / 0.9669 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.001648/1.168, allocations: 0.7103 MB / 1.262 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002394/1.17, allocations: 1.152 MB / 1.263 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/1.17, allocations: 0 / 1.263 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001258/1.171, allocations: 0.6796 MB / 1.263 GB, free: 9.75 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002221/1.173, allocations: 0.5385 MB / 1.264 GB, free: 9.23 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004386/1.178, allocations: 2.332 MB / 1.266 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008403/1.179, allocations: 1.209 MB / 1.267 GB, free: 5.625 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001481/1.18, allocations: 385.8 kB / 1.268 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004142/1.181, allocations: 139.4 kB / 1.268 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of SimCode: time 7.22e-07/1.181, allocations: 0 / 1.268 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of Templates: time 0.04164/1.222, allocations: 24.5 MB / 1.292 GB, free: 12.91 MB / 0.9981 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 -s cvode -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) Reference file matches