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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001705/0.001705, allocations: 108 kB / 15.6 MB, free: 132 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.002211/0.002211, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.379/1.379, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.887/2.887, allocations: 472.6 MB / 0.7451 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 67.73 kB / 0.9121 GB, free: 33.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3139, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1852/0.4992, allocations: 176.8 MB / 1.241 GB, free: 8.961 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6752/1.174, allocations: 12.8 MB / 1.253 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001749/1.176, allocations: 33.66 kB / 1.253 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001358/1.178, allocations: 474 kB / 1.254 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00334/1.181, allocations: 1.038 MB / 1.255 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004961/1.186, allocations: 1.865 MB / 1.257 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004153/1.19, allocations: 2.515 MB / 1.259 GB, free: 5.82 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00284/1.193, allocations: 1.603 MB / 1.261 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004576/1.198, allocations: 1.402 MB / 1.262 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001551/1.199, allocations: 0.8848 MB / 1.263 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003161/1.199, allocations: 170.3 kB / 1.263 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003342/1.203, allocations: 1.396 MB / 1.264 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005512/1.203, allocations: 495.7 kB / 1.265 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001307/1.205, allocations: 0.878 MB / 1.266 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00494/1.21, allocations: 2.75 MB / 1.268 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/1.21, allocations: 2.406 kB / 1.268 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.483e-06/1.21, allocations: 0 / 1.268 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.635e-05/1.21, allocations: 1 kB / 1.268 GB, free: 5.375 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.004056/1.214, allocations: 2.023 MB / 1.27 GB, free: 20.36 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/1.214, allocations: 9.938 kB / 1.27 GB, free: 20.36 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002804/1.217, allocations: 411.2 kB / 1.271 GB, free: 20.27 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001704/1.218, allocations: 0.9845 MB / 1.272 GB, free: 19.92 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/1.218, allocations: 101.5 kB / 1.272 GB, free: 19.91 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002212/1.219, allocations: 139.2 kB / 1.272 GB, free: 19.91 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002946/1.222, allocations: 1.524 MB / 1.274 GB, free: 19.69 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/1.222, allocations: 1.25 kB / 1.274 GB, free: 19.69 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001578/1.222, allocations: 60.69 kB / 1.274 GB, free: 19.69 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.087e-05/1.222, allocations: 33.95 kB / 1.274 GB, free: 19.69 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003217/1.225, allocations: 1.581 MB / 1.275 GB, free: 19.67 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 preOpt removeSimpleEquations (simulation): time 0.009851/1.235, allocations: 5.343 MB / 1.28 GB, free: 17.16 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002814/1.238, allocations: 1.518 MB / 1.282 GB, free: 16.74 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009361/1.239, allocations: 486.2 kB / 1.282 GB, free: 16.73 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007786/1.24, allocations: 423.3 kB / 1.283 GB, free: 16.35 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001372/1.241, allocations: 0.6978 MB / 1.283 GB, free: 16.28 MB / 1.014 GB Notification: Performance of pre-optimization done (n=107): time 3.016e-06/1.241, allocations: 0 / 1.283 GB, free: 16.28 MB / 1.014 GB Notification: Performance of matching and sorting (n=107): time 0.004826/1.246, allocations: 1.665 MB / 1.285 GB, free: 16.07 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/1.246, allocations: 197.4 kB / 1.285 GB, free: 15.85 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/1.247, allocations: 0.8922 MB / 1.286 GB, free: 15.7 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.000148/1.247, allocations: 47.02 kB / 1.286 GB, free: 15.66 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004452/1.248, allocations: 0.5985 MB / 1.287 GB, free: 15.41 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002507/1.248, allocations: 353.8 kB / 1.287 GB, free: 15.19 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003313/1.249, allocations: 222.9 kB / 1.287 GB, free: 15.16 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000123/1.249, allocations: 345 kB / 1.288 GB, free: 14.86 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007796/1.249, allocations: 402.3 kB / 1.288 GB, free: 14.85 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009482/1.25, allocations: 0.5667 MB / 1.289 GB, free: 14.7 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001713/1.252, allocations: 0.9566 MB / 1.289 GB, free: 14.58 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/1.252, allocations: 1.156 kB / 1.289 GB, free: 14.58 MB / 1.014 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002971/1.255, allocations: 1.234 MB / 1.291 GB, free: 14.46 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/1.255, allocations: 5.719 kB / 1.291 GB, free: 14.46 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/1.255, allocations: 4.219 kB / 1.291 GB, free: 14.46 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006252/1.256, allocations: 84.92 kB / 1.291 GB, free: 14.45 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/1.257, allocations: 255.8 kB / 1.291 GB, free: 14.45 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00204/1.259, allocations: 1.654 MB / 1.293 GB, free: 13.06 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/1.26, allocations: 145 kB / 1.293 GB, free: 13 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/1.26, allocations: 47.92 kB / 1.293 GB, free: 13 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.0007666/1.261, allocations: 345.7 kB / 1.293 GB, free: 12.89 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002632/1.261, allocations: 127.8 kB / 1.293 GB, free: 12.82 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003246/1.265, allocations: 1.42 MB / 1.295 GB, free: 12.71 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.72e-05/1.265, allocations: 15.27 kB / 1.295 GB, free: 12.71 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/1.265, allocations: 1.062 kB / 1.295 GB, free: 12.71 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/1.265, allocations: 6.5 kB / 1.295 GB, free: 12.71 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.005289/1.27, allocations: 2.891 MB / 1.298 GB, free: 12.19 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.044e-06/1.27, allocations: 1.156 kB / 1.298 GB, free: 12.19 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/1.271, allocations: 216.2 kB / 1.298 GB, free: 12.19 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004541/1.272, allocations: 72.44 kB / 1.298 GB, free: 12.18 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.428e-05/1.272, allocations: 35 kB / 1.298 GB, free: 12.18 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001848/1.274, allocations: 1.673 MB / 1.299 GB, free: 10.8 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.274, allocations: 1.406 kB / 1.299 GB, free: 10.8 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00284/1.276, allocations: 1.325 MB / 1.301 GB, free: 10.57 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006443/1.277, allocations: 360.7 kB / 1.301 GB, free: 10.39 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/1.277, allocations: 21.03 kB / 1.301 GB, free: 10.39 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009408/1.278, allocations: 82.55 kB / 1.301 GB, free: 10.39 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/1.278, allocations: 84.25 kB / 1.301 GB, free: 10.39 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/1.279, allocations: 51.69 kB / 1.301 GB, free: 10.39 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0008823/1.279, allocations: 0.6177 MB / 1.302 GB, free: 10.29 MB / 1.014 GB Notification: Performance of sort global known variables: time 7.72e-07/1.279, allocations: 0 / 1.302 GB, free: 10.29 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001426/1.281, allocations: 497.8 kB / 1.302 GB, free: 10.21 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.001604/1.282, allocations: 0.7252 MB / 1.303 GB, free: 9.977 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.003654/1.286, allocations: 1.464 MB / 1.305 GB, free: 9.832 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/1.286, allocations: 0.625 kB / 1.305 GB, free: 9.832 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001236/1.287, allocations: 0.6762 MB / 1.305 GB, free: 9.719 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002631/1.29, allocations: 0.5391 MB / 1.306 GB, free: 9.648 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004531/1.295, allocations: 2.364 MB / 1.308 GB, free: 8.789 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009537/1.296, allocations: 1.216 MB / 1.309 GB, free: 8.062 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001923/1.298, allocations: 394.6 kB / 1.31 GB, free: 7.941 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004997/1.298, allocations: 141.5 kB / 1.31 GB, free: 7.934 MB / 1.014 GB Notification: Performance of SimCode: time 1.353e-06/1.298, allocations: 0 / 1.31 GB, free: 7.934 MB / 1.014 GB Notification: Performance of Templates: time 0.04526/1.343, allocations: 24.53 MB / 1.334 GB, free: 1.805 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/jenkins/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