Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.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.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009964/0.0009965, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.006464/0.006464, allocations: 168.8 kB / 16.26 MB, free: 6.652 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.465/1.465, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.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.494/2.494, allocations: 390.9 MB / 0.6663 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003477, allocations: 12 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7366/0.737, allocations: 142.4 MB / 0.955 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.002195/0.7392, allocations: 1.69 MB / 0.9567 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001224/0.7405, allocations: 0.66 MB / 0.9573 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.7407, allocations: 3.031 kB / 0.9573 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.7409, allocations: 16.83 kB / 0.9574 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.741, allocations: 14.62 kB / 0.9574 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003651/0.7414, allocations: 74.58 kB / 0.9574 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000225/0.7416, allocations: 136.5 kB / 0.9576 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001968/0.7418, allocations: 83.14 kB / 0.9577 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.742, allocations: 46.67 kB / 0.9577 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/0.7421, allocations: 54.27 kB / 0.9578 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.607e-05/0.7421, allocations: 3.938 kB / 0.9578 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.7423, allocations: 55.72 kB / 0.9578 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.7424, allocations: 62.05 kB / 0.9579 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.404e-05/0.7425, allocations: 99.61 kB / 0.958 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.7428, allocations: 248 kB / 0.9582 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.7428, allocations: 0 / 0.9582 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.312e-06/0.7428, allocations: 1.312 kB / 0.9582 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.181e-06/0.7428, allocations: 0 / 0.9582 GB, free: 5.207 MB / 0.7169 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.0007217/0.7435, allocations: 0.499 MB / 0.9587 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.7436, allocations: 12.84 kB / 0.9587 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001616/0.7452, allocations: 433.8 kB / 0.9591 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003543/0.7456, allocations: 308.9 kB / 0.9594 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.441e-05/0.7456, allocations: 76.44 kB / 0.9595 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.463e-05/0.7457, allocations: 15.23 kB / 0.9595 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000806/0.7465, allocations: 394.4 kB / 0.9599 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.7465, allocations: 0 / 0.9599 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.7466, allocations: 5.375 kB / 0.9599 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.7466, allocations: 2.75 kB / 0.9599 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.7478, allocations: 0.5446 MB / 0.9604 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.7494, allocations: 1.011 MB / 0.9614 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006692/0.7501, allocations: 293.6 kB / 0.9617 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005883/0.7507, allocations: 287.2 kB / 0.962 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.7507, allocations: 1.062 kB / 0.962 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.952e-05/0.7508, allocations: 31.81 kB / 0.962 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.7508, allocations: 3.938 kB / 0.962 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.001808/0.7526, allocations: 0.7986 MB / 0.9628 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.017e-05/0.7526, allocations: 52.97 kB / 0.9628 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003237/0.753, allocations: 298.8 kB / 0.9631 GB, free: 2 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.753, allocations: 26.86 kB / 0.9631 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.698e-05/0.7531, allocations: 157.8 kB / 0.9633 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.609e-05/0.7531, allocations: 26.25 kB / 0.9633 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.856e-05/0.7532, allocations: 21.61 kB / 0.9633 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.347e-05/0.7533, allocations: 331.9 kB / 0.9636 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005952/0.7539, allocations: 264.4 kB / 0.9639 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005479/0.7544, allocations: 264.5 kB / 0.9641 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000995/0.7554, allocations: 451.3 kB / 0.9646 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.7554, allocations: 0 / 0.9646 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001172/0.7566, allocations: 0.5488 MB / 0.9651 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.7566, allocations: 5 kB / 0.9651 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.7567, allocations: 0 / 0.9651 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.7567, allocations: 1.062 kB / 0.9651 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003904/0.7571, allocations: 102.6 kB / 0.9652 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.7571, allocations: 1.094 kB / 0.9652 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003185/0.7574, allocations: 79.41 kB / 0.9653 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.7574, allocations: 11 kB / 0.9653 GB, free: 0.6523 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (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 prepare postOptimizeDAE: time 0.0001387/0.7576, allocations: 144.9 kB / 0.9654 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.69e-05/0.7577, allocations: 21.09 kB / 0.9655 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.389e-05/0.7577, allocations: 25.61 kB / 0.9655 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.7577, allocations: 1.125 kB / 0.9655 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.7577, allocations: 0.9688 kB / 0.9655 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.7577, allocations: 0 / 0.9655 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004512/0.7582, allocations: 439.9 kB / 0.9659 GB, free: 148 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.7582, allocations: 4.984 kB / 0.9659 GB, free: 144 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003641/0.7586, allocations: 98.98 kB / 0.966 GB, free: 92 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.7586, allocations: 1 kB / 0.966 GB, free: 92 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.7586, allocations: 10.97 kB / 0.966 GB, free: 84 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.7586, allocations: 0 / 0.966 GB, free: 84 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.7586, allocations: 0.9688 kB / 0.966 GB, free: 84 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001381/0.76, allocations: 0.6376 MB / 0.9666 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.067e-05/0.7601, allocations: 108.2 kB / 0.9667 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.773e-05/0.7602, allocations: 1.094 kB / 0.9667 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003488/0.7605, allocations: 74.19 kB / 0.9668 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.106e-05/0.7606, allocations: 11.17 kB / 0.9668 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.7606, allocations: 7.984 kB / 0.9668 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002571/0.7609, allocations: 218.7 kB / 0.967 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7609, allocations: 0 / 0.967 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003269/0.7612, allocations: 41.22 kB / 0.9671 GB, free: 15.4 MB / 0.7325 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.0001701/0.7614, allocations: 104.8 kB / 0.9672 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001306/0.7627, allocations: 0.5393 MB / 0.9677 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.7627, allocations: 0 / 0.9677 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000645/0.7634, allocations: 289.8 kB / 0.968 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003262/0.7637, allocations: 21.28 kB / 0.968 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.765, allocations: 0.6628 MB / 0.9687 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.7654, allocations: 0.7531 MB / 0.9694 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002065/0.7656, allocations: 51.58 kB / 0.9694 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.7657, allocations: 34.39 kB / 0.9695 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of SimCode: time 3.3e-07/0.7657, allocations: 0 / 0.9695 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of Templates: time 0.006011/0.7717, allocations: 2.648 MB / 0.9721 GB, free: 12.39 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches