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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001483/0.001483, allocations: 100.1 kB / 15.88 MB, free: 12 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.001706/0.001706, allocations: 197.2 kB / 16.79 MB, free: 6.809 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.381/1.381, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.39/2.39, allocations: 390.2 MB / 0.6649 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001486, allocations: 63.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7071/0.7086, allocations: 140.4 MB / 0.9496 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1852/0.8939, allocations: 173.8 MB / 1.119 GB, free: 3.75 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01892/0.9128, allocations: 12.76 MB / 1.132 GB, free: 6.953 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001611/0.9145, allocations: 31.81 kB / 1.132 GB, free: 6.922 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.9162, allocations: 365.7 kB / 1.132 GB, free: 6.562 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.003593/0.9198, allocations: 0.8666 MB / 1.133 GB, free: 5.695 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004999/0.9248, allocations: 1.666 MB / 1.135 GB, free: 4.035 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.003693/0.9285, allocations: 2.747 MB / 1.137 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002635/0.9312, allocations: 1.494 MB / 1.139 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005058/0.9363, allocations: 1.252 MB / 1.14 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001498/0.9378, allocations: 0.84 MB / 1.141 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0005408/0.9383, allocations: 88 kB / 1.141 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003326/0.9417, allocations: 1.462 MB / 1.142 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0006767/0.9424, allocations: 422.5 kB / 1.143 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001392/0.9438, allocations: 0.7732 MB / 1.143 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002948/0.9467, allocations: 2.019 MB / 1.145 GB, free: 8.898 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.9468, allocations: 4 kB / 1.145 GB, free: 8.895 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.523e-06/0.9468, allocations: 0 / 1.145 GB, free: 8.895 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.405e-05/0.9469, allocations: 0 / 1.145 GB, free: 8.895 MB / 0.9044 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.004623/0.9515, allocations: 2.009 MB / 1.147 GB, free: 6.824 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.9515, allocations: 8.031 kB / 1.147 GB, free: 6.816 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00287/0.9544, allocations: 401.6 kB / 1.148 GB, free: 6.422 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001907/0.9564, allocations: 0.9917 MB / 1.149 GB, free: 5.387 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001079/0.9565, allocations: 102.7 kB / 1.149 GB, free: 5.285 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002683/0.9568, allocations: 132 kB / 1.149 GB, free: 5.156 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003253/0.96, allocations: 1.52 MB / 1.15 GB, free: 3.559 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/0.9601, allocations: 0 / 1.15 GB, free: 3.559 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001837/0.9603, allocations: 63.98 kB / 1.15 GB, free: 3.496 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.342e-05/0.9603, allocations: 36 kB / 1.151 GB, free: 3.461 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002954/0.9633, allocations: 1.587 MB / 1.152 GB, free: 1.867 MB / 0.9044 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.008485/0.9718, allocations: 5.059 MB / 1.157 GB, free: 12.54 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00282/0.9746, allocations: 1.52 MB / 1.159 GB, free: 10.95 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008993/0.9755, allocations: 482.4 kB / 1.159 GB, free: 10.47 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008013/0.9764, allocations: 425.3 kB / 1.159 GB, free: 9.984 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001374/0.9778, allocations: 0.6957 MB / 1.16 GB, free: 9.27 MB / 0.92 GB Notification: Performance of pre-optimization done (n=107): time 3.577e-06/0.9778, allocations: 0 / 1.16 GB, free: 9.27 MB / 0.92 GB Notification: Performance of matching and sorting (n=107): time 0.004576/0.9824, allocations: 1.664 MB / 1.162 GB, free: 7.578 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.9825, allocations: 200.9 kB / 1.162 GB, free: 7.336 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001543/0.9841, allocations: 0.892 MB / 1.163 GB, free: 6.422 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.000166/0.9842, allocations: 49.7 kB / 1.163 GB, free: 6.367 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005837/0.9848, allocations: 0.5974 MB / 1.163 GB, free: 5.762 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003781/0.9852, allocations: 358.8 kB / 1.164 GB, free: 5.406 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003937/0.9856, allocations: 210.8 kB / 1.164 GB, free: 5.195 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.9858, allocations: 353.9 kB / 1.164 GB, free: 4.844 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008559/0.9866, allocations: 394.4 kB / 1.165 GB, free: 4.457 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.9877, allocations: 0.5707 MB / 1.165 GB, free: 3.836 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001864/0.9896, allocations: 0.9565 MB / 1.166 GB, free: 2.84 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.9896, allocations: 4 kB / 1.166 GB, free: 2.836 MB / 0.92 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003004/0.9926, allocations: 1.227 MB / 1.167 GB, free: 1.598 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.9927, allocations: 13.62 kB / 1.167 GB, free: 1.586 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.9927, allocations: 4 kB / 1.167 GB, free: 1.582 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006176/0.9933, allocations: 88.77 kB / 1.167 GB, free: 1.492 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.9945, allocations: 247.7 kB / 1.168 GB, free: 1.25 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002206/0.9967, allocations: 1.541 MB / 1.169 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.9981, allocations: 155 kB / 1.169 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001733/0.9983, allocations: 59.89 kB / 1.169 GB, free: 15.36 MB / 0.9356 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.0008676/0.9991, allocations: 343.2 kB / 1.17 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004209/0.9996, allocations: 126.5 kB / 1.17 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003589/1.003, allocations: 1.429 MB / 1.171 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/1.003, allocations: 12.09 kB / 1.171 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/1.003, allocations: 11.92 kB / 1.171 GB, free: 13.42 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/1.003, allocations: 3.984 kB / 1.171 GB, free: 13.42 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 postOpt removeSimpleEquations (simulation): time 0.005621/1.009, allocations: 2.866 MB / 1.174 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/1.009, allocations: 0 / 1.174 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/1.01, allocations: 215.8 kB / 1.174 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005346/1.01, allocations: 84.77 kB / 1.174 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/1.011, allocations: 39.91 kB / 1.174 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001973/1.013, allocations: 1.552 MB / 1.176 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/1.013, allocations: 0 / 1.176 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003075/1.016, allocations: 1.324 MB / 1.177 GB, free: 7.098 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007967/1.017, allocations: 359.1 kB / 1.178 GB, free: 6.727 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002834/1.017, allocations: 23.94 kB / 1.178 GB, free: 6.703 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/1.018, allocations: 95.89 kB / 1.178 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/1.018, allocations: 88.88 kB / 1.178 GB, free: 6.52 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/1.018, allocations: 47.97 kB / 1.178 GB, free: 6.473 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001077/1.019, allocations: 0.615 MB / 1.178 GB, free: 5.848 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.8e-07/1.019, allocations: 8 kB / 1.178 GB, free: 5.84 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001459/1.021, allocations: 490.7 kB / 1.179 GB, free: 5.359 MB / 0.9356 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.001799/1.023, allocations: 0.7021 MB / 1.18 GB, free: 4.84 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.002551/1.025, allocations: 1.144 MB / 1.181 GB, free: 3.688 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/1.025, allocations: 4 kB / 1.181 GB, free: 3.684 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001352/1.027, allocations: 0.6719 MB / 1.181 GB, free: 3 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002562/1.029, allocations: 498.7 kB / 1.182 GB, free: 2.527 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006033/1.035, allocations: 3.117 MB / 1.185 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/1.036, allocations: 1.216 MB / 1.186 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006568/1.037, allocations: 151.3 kB / 1.186 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of SimCode: time 1.052e-06/1.037, allocations: 0 / 1.186 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of Templates: time 0.04092/1.078, allocations: 28.17 MB / 1.214 GB, free: 1.934 MB / 0.9669 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