Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 169 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9618/0.9618, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.073/2.073, allocations: 429.5 MB / 0.6732 GB, free: 4.066 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 1.094 kB / 0.8782 GB, free: 6.297 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.728e-05/2.934e-05, allocations: 4.984 kB / 0.8782 GB, free: 6.293 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.002598/0.002628, allocations: 2.033 MB / 0.8802 GB, free: 4.27 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001087/0.003715, allocations: 0.7284 MB / 0.8809 GB, free: 3.539 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.003837, allocations: 4 kB / 0.8809 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.003977, allocations: 19.73 kB / 0.8809 GB, free: 3.516 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.49e-05/0.004062, allocations: 27.73 kB / 0.8809 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004873/0.004549, allocations: 100.7 kB / 0.881 GB, free: 3.391 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001792/0.004728, allocations: 147.6 kB / 0.8812 GB, free: 3.246 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002036/0.004932, allocations: 66.02 kB / 0.8812 GB, free: 3.176 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.005119, allocations: 95.67 kB / 0.8813 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.006e-05/0.005189, allocations: 52.86 kB / 0.8814 GB, free: 3.031 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/0.005214, allocations: 16 kB / 0.8814 GB, free: 3.016 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.005337, allocations: 59.94 kB / 0.8815 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 8.123e-05/0.005418, allocations: 72.84 kB / 0.8815 GB, free: 2.887 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.781e-05/0.005466, allocations: 51.84 kB / 0.8816 GB, free: 2.836 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000277/0.005743, allocations: 187.2 kB / 0.8817 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.005746, allocations: 1.062 kB / 0.8817 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.062e-06/0.005747, allocations: 0 / 0.8817 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.94e-06/0.005752, allocations: 3.938 kB / 0.8818 GB, free: 2.648 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006219/0.006374, allocations: 0.5769 MB / 0.8823 GB, free: 2.035 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.006416, allocations: 12.03 kB / 0.8823 GB, free: 2.023 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.007436, allocations: 489.7 kB / 0.8828 GB, free: 1.551 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003251/0.007761, allocations: 255.5 kB / 0.883 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.007876, allocations: 135.6 kB / 0.8832 GB, free: 1.121 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.186e-05/0.007898, allocations: 12.38 kB / 0.8832 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004304/0.008329, allocations: 345.7 kB / 0.8835 GB, free: 0.7656 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.008337, allocations: 192 / 0.8835 GB, free: 0.7656 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.008358, allocations: 8.125 kB / 0.8835 GB, free: 0.7578 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.008365, allocations: 4 kB / 0.8835 GB, free: 0.7539 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002934/0.008659, allocations: 329.4 kB / 0.8838 GB, free: 444 kB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.009748, allocations: 0.9279 MB / 0.8847 GB, free: 15.47 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000292/0.01004, allocations: 242.9 kB / 0.885 GB, free: 15.22 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.01019, allocations: 167.6 kB / 0.8851 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.01021, allocations: 4 kB / 0.8851 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.01023, allocations: 45.27 kB / 0.8852 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 2.725e-06/0.01024, allocations: 0 / 0.8852 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0005605/0.0108, allocations: 0.5129 MB / 0.8857 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.01082, allocations: 51.41 kB / 0.8857 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001979/0.01102, allocations: 312.3 kB / 0.886 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.01104, allocations: 25.7 kB / 0.8861 GB, free: 14.06 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 9.775e-05/0.01114, allocations: 210.8 kB / 0.8863 GB, free: 13.85 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.01116, allocations: 23.8 kB / 0.8863 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.038e-05/0.01124, allocations: 79.28 kB / 0.8864 GB, free: 13.74 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.01137, allocations: 0.5079 MB / 0.8868 GB, free: 13.22 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.01154, allocations: 179.8 kB / 0.887 GB, free: 13.04 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.0117, allocations: 199.2 kB / 0.8872 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002594/0.01196, allocations: 311.4 kB / 0.8875 GB, free: 12.53 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.01197, allocations: 0 / 0.8875 GB, free: 12.53 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0008115/0.01278, allocations: 441.1 kB / 0.8879 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.0128, allocations: 8.031 kB / 0.8879 GB, free: 12.08 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.0128, allocations: 8 kB / 0.8879 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.01282, allocations: 0 / 0.8879 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.01301, allocations: 119.8 kB / 0.8881 GB, free: 11.96 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.01302, allocations: 0 / 0.8881 GB, free: 11.96 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.01313, allocations: 67.86 kB / 0.8881 GB, free: 11.89 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.754e-05/0.01323, allocations: 139.7 kB / 0.8883 GB, free: 11.75 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.207e-05/0.01332, allocations: 160.6 kB / 0.8884 GB, free: 11.59 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.008e-05/0.01336, allocations: 23.8 kB / 0.8884 GB, free: 11.56 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.5e-05/0.01339, allocations: 29.7 kB / 0.8885 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.0134, allocations: 4 kB / 0.8885 GB, free: 11.53 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.0134, allocations: 0 / 0.8885 GB, free: 11.53 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.0134, allocations: 3.984 kB / 0.8885 GB, free: 11.53 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002824/0.01369, allocations: 351.7 kB / 0.8888 GB, free: 11.15 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.01369, allocations: 0 / 0.8888 GB, free: 11.15 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001478/0.01384, allocations: 119.8 kB / 0.8889 GB, free: 11.03 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.01384, allocations: 0 / 0.8889 GB, free: 11.03 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.01386, allocations: 31.89 kB / 0.8889 GB, free: 11 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.01386, allocations: 0 / 0.8889 GB, free: 11 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01387, allocations: 4 kB / 0.8889 GB, free: 11 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004395/0.0143, allocations: 0.558 MB / 0.8895 GB, free: 10.42 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.62e-05/0.01433, allocations: 19.91 kB / 0.8895 GB, free: 10.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.01436, allocations: 3.938 kB / 0.8895 GB, free: 10.39 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.01447, allocations: 71.84 kB / 0.8896 GB, free: 10.32 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.134e-05/0.01452, allocations: 11.97 kB / 0.8896 GB, free: 10.31 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.744e-05/0.01461, allocations: 135.8 kB / 0.8897 GB, free: 10.18 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001182/0.01473, allocations: 213.1 kB / 0.8899 GB, free: 9.977 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.01473, allocations: 4 kB / 0.8899 GB, free: 9.973 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002201/0.01495, allocations: 43.89 kB / 0.89 GB, free: 9.93 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001475/0.0151, allocations: 99.23 kB / 0.8901 GB, free: 9.824 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003985/0.0155, allocations: 419.2 kB / 0.8905 GB, free: 9.41 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.0155, allocations: 0 / 0.8905 GB, free: 9.41 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.01568, allocations: 227.5 kB / 0.8907 GB, free: 9.184 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.01591, allocations: 49 kB / 0.8907 GB, free: 9.137 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008085/0.01671, allocations: 0.5109 MB / 0.8912 GB, free: 8.602 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.516e-05/0.01677, allocations: 83.81 kB / 0.8913 GB, free: 8.5 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0003082/0.01708, allocations: 376.8 kB / 0.8917 GB, free: 8.125 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.01718, allocations: 68.42 kB / 0.8917 GB, free: 8.059 MB / 0.8542 GB Notification: Performance of SimCode: time 8.42e-07/0.01718, allocations: 3.938 kB / 0.8917 GB, free: 8.055 MB / 0.8542 GB Notification: Performance of Templates: time 0.005706/0.02289, allocations: 3.354 MB / 0.895 GB, free: 4.734 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.308532353956252]