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.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_latest_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.0009739/0.0009737, allocations: 92.16 kB / 16.02 MB, free: 80 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.001311/0.00131, allocations: 173 kB / 16.92 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.417/1.417, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.699/2.699, allocations: 443.2 MB / 0.7181 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00034/0.00034, allocations: 8.719 kB / 0.8801 GB, free: 42.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3409, allocations: 155.2 MB / 1.032 GB, free: 4.723 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.002597/0.3436, allocations: 1.682 MB / 1.033 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.345, allocations: 0.6826 MB / 1.034 GB, free: 2.332 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.3451, allocations: 0 / 1.034 GB, free: 2.332 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.3453, allocations: 11.86 kB / 1.034 GB, free: 2.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.924e-05/0.3454, allocations: 23.84 kB / 1.034 GB, free: 2.297 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003068/0.3457, allocations: 71.88 kB / 1.034 GB, free: 2.227 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.3459, allocations: 131.7 kB / 1.034 GB, free: 2.098 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.3461, allocations: 80.61 kB / 1.034 GB, free: 2.02 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.3462, allocations: 59.59 kB / 1.034 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.3463, allocations: 51.7 kB / 1.034 GB, free: 1.91 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.066e-05/0.3464, allocations: 4 kB / 1.034 GB, free: 1.906 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.3465, allocations: 47.95 kB / 1.034 GB, free: 1.859 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.994e-05/0.3466, allocations: 55.75 kB / 1.034 GB, free: 1.805 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.676e-05/0.3467, allocations: 105 kB / 1.035 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.3469, allocations: 187.8 kB / 1.035 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.347, allocations: 0 / 1.035 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.483e-06/0.347, allocations: 3.938 kB / 1.035 GB, free: 1.508 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.347, allocations: 0 / 1.035 GB, free: 1.508 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.0007795/0.3478, allocations: 0.5064 MB / 1.035 GB, free: 0.9531 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.3478, allocations: 12.03 kB / 1.035 GB, free: 0.9414 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001687/0.3495, allocations: 431.9 kB / 1.036 GB, free: 0.5195 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/0.3499, allocations: 315.7 kB / 1.036 GB, free: 180 kB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.749e-05/0.35, allocations: 68.19 kB / 1.036 GB, free: 100 kB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.295e-05/0.3501, allocations: 12.38 kB / 1.036 GB, free: 88 kB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000839/0.3509, allocations: 395.4 kB / 1.036 GB, free: 15.69 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.515e-06/0.3509, allocations: 0 / 1.036 GB, free: 15.69 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.76e-05/0.351, allocations: 4 kB / 1.036 GB, free: 15.69 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.351, allocations: 8 kB / 1.036 GB, free: 15.68 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.3522, allocations: 0.5471 MB / 1.037 GB, free: 15.13 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.3539, allocations: 0.9977 MB / 1.038 GB, free: 14.09 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006596/0.3546, allocations: 298.3 kB / 1.038 GB, free: 13.79 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006112/0.3552, allocations: 280.6 kB / 1.038 GB, free: 13.51 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.3552, allocations: 0 / 1.038 GB, free: 13.51 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.3552, allocations: 30.56 kB / 1.039 GB, free: 13.47 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 2.565e-06/0.3552, allocations: 7.922 kB / 1.039 GB, free: 13.46 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.001929/0.3572, allocations: 0.8055 MB / 1.039 GB, free: 12.65 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.3572, allocations: 55.41 kB / 1.039 GB, free: 12.59 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.3576, allocations: 294.6 kB / 1.04 GB, free: 12.29 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.3576, allocations: 29.7 kB / 1.04 GB, free: 12.25 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.3577, allocations: 152.2 kB / 1.04 GB, free: 12.1 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.571e-05/0.3578, allocations: 19.66 kB / 1.04 GB, free: 12.08 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.05e-05/0.3578, allocations: 13.72 kB / 1.04 GB, free: 12.06 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3579, allocations: 342.8 kB / 1.04 GB, free: 11.71 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005877/0.3585, allocations: 259.8 kB / 1.04 GB, free: 11.46 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005791/0.3591, allocations: 267.7 kB / 1.041 GB, free: 11.2 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.3602, allocations: 464.3 kB / 1.041 GB, free: 10.74 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3602, allocations: 0 / 1.041 GB, free: 10.74 MB / 0.795 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001236/0.3615, allocations: 0.5361 MB / 1.042 GB, free: 10.2 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.3615, allocations: 5.094 kB / 1.042 GB, free: 10.2 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.3615, allocations: 0.5469 kB / 1.042 GB, free: 10.2 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.3615, allocations: 3.938 kB / 1.042 GB, free: 10.19 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004083/0.3619, allocations: 99.83 kB / 1.042 GB, free: 10.09 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.3619, allocations: 0 / 1.042 GB, free: 10.09 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003127/0.3623, allocations: 87.7 kB / 1.042 GB, free: 10.01 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.3623, allocations: 7.984 kB / 1.042 GB, free: 10 MB / 0.795 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.0001749/0.3625, allocations: 151.2 kB / 1.042 GB, free: 9.844 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.215e-05/0.3625, allocations: 15.81 kB / 1.042 GB, free: 9.828 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.169e-05/0.3626, allocations: 25.7 kB / 1.042 GB, free: 9.805 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.3626, allocations: 4 kB / 1.042 GB, free: 9.801 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3626, allocations: 0 / 1.042 GB, free: 9.801 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3626, allocations: 0 / 1.042 GB, free: 9.801 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005007/0.3631, allocations: 436.3 kB / 1.042 GB, free: 9.324 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3631, allocations: 4 kB / 1.042 GB, free: 9.32 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003533/0.3635, allocations: 91.83 kB / 1.043 GB, free: 9.23 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.3635, allocations: 0 / 1.043 GB, free: 9.23 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.3635, allocations: 11.98 kB / 1.043 GB, free: 9.219 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3636, allocations: 4 kB / 1.043 GB, free: 9.215 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3636, allocations: 0 / 1.043 GB, free: 9.215 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/0.3649, allocations: 0.6472 MB / 1.043 GB, free: 8.551 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.243e-05/0.365, allocations: 96.83 kB / 1.043 GB, free: 8.438 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.665e-05/0.365, allocations: 4 kB / 1.043 GB, free: 8.434 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003321/0.3653, allocations: 79.86 kB / 1.043 GB, free: 8.355 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.952e-05/0.3654, allocations: 11.98 kB / 1.043 GB, free: 8.344 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.529e-05/0.3654, allocations: 7.984 kB / 1.043 GB, free: 8.336 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002231/0.3657, allocations: 217.9 kB / 1.044 GB, free: 8.125 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3657, allocations: 0 / 1.044 GB, free: 8.125 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003149/0.366, allocations: 47.84 kB / 1.044 GB, free: 8.078 MB / 0.795 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.0001816/0.3662, allocations: 107.2 kB / 1.044 GB, free: 7.965 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001256/0.3675, allocations: 0.5385 MB / 1.044 GB, free: 7.426 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.3675, allocations: 0 / 1.044 GB, free: 7.426 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000625/0.3681, allocations: 283.7 kB / 1.045 GB, free: 7.148 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003277/0.3684, allocations: 16.5 kB / 1.045 GB, free: 7.129 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.3697, allocations: 0.6923 MB / 1.045 GB, free: 6.406 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.37, allocations: 0.7477 MB / 1.046 GB, free: 5.633 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.3702, allocations: 35.38 kB / 1.046 GB, free: 5.598 MB / 0.795 GB Notification: Performance of SimCode: time 4.41e-07/0.3702, allocations: 0 / 1.046 GB, free: 5.598 MB / 0.795 GB Notification: Performance of Templates: time 0.00591/0.3761, allocations: 3.645 MB / 1.05 GB, free: 1.953 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches