Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001853/0.001853, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001488/0.001488, allocations: 194.5 kB / 16.14 MB, free: 6.684 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.515/1.515, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.953/2.953, allocations: 437 MB / 0.7099 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002302/0.002302, allocations: 67.91 kB / 0.8686 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7654/0.7677, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003649/0.7714, allocations: 2.041 MB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001376/0.7728, allocations: 0.6865 MB / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.773, allocations: 3.938 kB / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.7731, allocations: 15.86 kB / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.7732, allocations: 15.86 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.7735, allocations: 75.94 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.7737, allocations: 143.5 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.7739, allocations: 80.61 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.774, allocations: 47.78 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002028/0.7742, allocations: 75.55 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.911e-05/0.7743, allocations: 8 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001429/0.7744, allocations: 51.95 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.901e-05/0.7745, allocations: 63.75 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.563e-05/0.7746, allocations: 83.41 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003043/0.775, allocations: 257 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.775, allocations: 4 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.41e-07/0.775, allocations: 0 / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.775, allocations: 0 / 1.02 GB, free: 15.11 MB / 0.7794 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.0008517/0.7758, allocations: 0.5375 MB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.7759, allocations: 8.031 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001838/0.7777, allocations: 427.9 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00041/0.7781, allocations: 311.8 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.7783, allocations: 68.19 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.7783, allocations: 16.31 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009986/0.7793, allocations: 384.9 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.7793, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.557e-05/0.7794, allocations: 4 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.7794, allocations: 4 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.7809, allocations: 0.5424 MB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.7828, allocations: 0.9976 MB / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007504/0.7835, allocations: 290.3 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006591/0.7842, allocations: 272.6 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.676e-05/0.7842, allocations: 4 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.7843, allocations: 38.55 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.7843, allocations: 0 / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.00206/0.7863, allocations: 0.7899 MB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.7864, allocations: 51.41 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003241/0.7867, allocations: 294.7 kB / 1.025 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.932e-05/0.7868, allocations: 33.62 kB / 1.025 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.7869, allocations: 160.3 kB / 1.025 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.151e-05/0.7869, allocations: 19.66 kB / 1.025 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.7871, allocations: 37.67 kB / 1.025 GB, free: 9.656 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002018/0.7873, allocations: 338.8 kB / 1.026 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006589/0.7879, allocations: 255.8 kB / 1.026 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006531/0.7886, allocations: 255.8 kB / 1.026 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.7898, allocations: 444.4 kB / 1.027 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.7898, allocations: 0 / 1.027 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001366/0.7911, allocations: 0.5438 MB / 1.027 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.7912, allocations: 5.562 kB / 1.027 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-06/0.7912, allocations: 0 / 1.027 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.7912, allocations: 0 / 1.027 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004089/0.7916, allocations: 95.83 kB / 1.027 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.7916, allocations: 0 / 1.027 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/0.792, allocations: 71.88 kB / 1.027 GB, free: 7.66 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.173e-05/0.792, allocations: 19.91 kB / 1.027 GB, free: 7.641 MB / 0.7794 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.0001563/0.7922, allocations: 137.8 kB / 1.027 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.21e-05/0.7922, allocations: 23.72 kB / 1.027 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.093e-05/0.7923, allocations: 21.7 kB / 1.027 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.7923, allocations: 3.984 kB / 1.027 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.7923, allocations: 3.938 kB / 1.027 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-06/0.7923, allocations: 0 / 1.027 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005447/0.7929, allocations: 436.4 kB / 1.028 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.7929, allocations: 4 kB / 1.028 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003907/0.7933, allocations: 87.83 kB / 1.028 GB, free: 6.879 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.7933, allocations: 4 kB / 1.028 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.7933, allocations: 7.969 kB / 1.028 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.7933, allocations: 4 kB / 1.028 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7933, allocations: 4 kB / 1.028 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.7947, allocations: 0.6237 MB / 1.029 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.996e-05/0.7948, allocations: 104.8 kB / 1.029 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.609e-05/0.7948, allocations: 4 kB / 1.029 GB, free: 6.094 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003488/0.7952, allocations: 67.88 kB / 1.029 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.7952, allocations: 15.86 kB / 1.029 GB, free: 6.012 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.563e-05/0.7953, allocations: 11.98 kB / 1.029 GB, free: 6 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002339/0.7955, allocations: 217.9 kB / 1.029 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7955, allocations: 0 / 1.029 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002952/0.7958, allocations: 39.91 kB / 1.029 GB, free: 5.746 MB / 0.7794 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.0001723/0.796, allocations: 107.8 kB / 1.029 GB, free: 5.633 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001321/0.7973, allocations: 0.5229 MB / 1.03 GB, free: 5.109 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.7973, allocations: 0 / 1.03 GB, free: 5.109 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006509/0.798, allocations: 279.7 kB / 1.03 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.7983, allocations: 20.89 kB / 1.03 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.7996, allocations: 0.6592 MB / 1.031 GB, free: 4.141 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004463/0.8001, allocations: 0.7476 MB / 1.031 GB, free: 3.367 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002437/0.8004, allocations: 57.42 kB / 1.031 GB, free: 3.309 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.8005, allocations: 31.39 kB / 1.031 GB, free: 3.277 MB / 0.7794 GB Notification: Performance of SimCode: time 7.32e-07/0.8005, allocations: 0 / 1.031 GB, free: 3.277 MB / 0.7794 GB Notification: Performance of Templates: time 0.006498/0.807, allocations: 2.681 MB / 1.034 GB, free: 0.5938 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & ./Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches