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.001408/0.001408, allocations: 109 kB / 16.41 MB, free: 6.492 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.001386/0.001385, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.384/1.384, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.318/2.318, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002161/0.002161, allocations: 67.89 kB / 0.9516 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9776/0.9797, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003547/0.9833, allocations: 1.988 MB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001335/0.9847, allocations: 0.6892 MB / 1.091 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.9848, allocations: 2.938 kB / 1.091 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.985, allocations: 21.55 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001075/0.9851, allocations: 22.02 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004146/0.9855, allocations: 85.72 kB / 1.091 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000232/0.9858, allocations: 148.8 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.986, allocations: 89.58 kB / 1.092 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.9861, allocations: 58.8 kB / 1.092 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.9863, allocations: 79.14 kB / 1.092 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.306e-05/0.9863, allocations: 13.84 kB / 1.092 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.9865, allocations: 63.61 kB / 1.092 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.9866, allocations: 68.36 kB / 1.092 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.926e-05/0.9867, allocations: 97.34 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004093/0.9871, allocations: 267.2 kB / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.9871, allocations: 0.7969 kB / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.944e-06/0.9871, allocations: 0 / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.507e-06/0.9872, allocations: 0 / 1.092 GB, free: 3.145 MB / 0.8575 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.0008629/0.988, allocations: 0.5325 MB / 1.093 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.9881, allocations: 9.469 kB / 1.093 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001896/0.99, allocations: 424 kB / 1.093 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004427/0.9904, allocations: 308.5 kB / 1.093 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.108e-05/0.9905, allocations: 78.31 kB / 1.094 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.564e-05/0.9906, allocations: 8.156 kB / 1.094 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009915/0.9916, allocations: 390 kB / 1.094 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.9916, allocations: 3.938 kB / 1.094 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.9916, allocations: 6.234 kB / 1.094 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.9916, allocations: 2.5 kB / 1.094 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.9931, allocations: 0.5355 MB / 1.094 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.9951, allocations: 0.9972 MB / 1.095 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008018/0.9959, allocations: 291.8 kB / 1.096 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007213/0.9967, allocations: 275.5 kB / 1.096 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.9967, allocations: 0 / 1.096 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.9967, allocations: 40.69 kB / 1.096 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.9967, allocations: 3.984 kB / 1.096 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.002221/0.999, allocations: 0.7889 MB / 1.097 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.999, allocations: 56.53 kB / 1.097 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004108/0.9994, allocations: 297.9 kB / 1.097 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/0.9995, allocations: 25.7 kB / 1.097 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.273e-05/0.9996, allocations: 150.1 kB / 1.097 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.531e-05/0.9996, allocations: 24.91 kB / 1.097 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.764e-05/0.9997, allocations: 36.69 kB / 1.097 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.227e-05/0.9998, allocations: 339.1 kB / 1.098 GB, free: 460 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006712/1, allocations: 256.2 kB / 1.098 GB, free: 412 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006684/1.001, allocations: 260.1 kB / 1.098 GB, free: 360 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/1.002, allocations: 441.6 kB / 1.099 GB, free: 268 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/1.002, allocations: 0 / 1.099 GB, free: 268 kB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.00143/1.004, allocations: 0.5401 MB / 1.099 GB, free: 124 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/1.004, allocations: 4.219 kB / 1.099 GB, free: 124 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/1.004, allocations: 0.5625 kB / 1.099 GB, free: 124 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/1.004, allocations: 1.656 kB / 1.099 GB, free: 124 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004503/1.004, allocations: 96.56 kB / 1.099 GB, free: 116 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/1.004, allocations: 0.6562 kB / 1.099 GB, free: 116 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003406/1.005, allocations: 74.52 kB / 1.099 GB, free: 112 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.963e-05/1.005, allocations: 7.453 kB / 1.099 GB, free: 112 kB / 0.8575 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.0001877/1.005, allocations: 147.9 kB / 1.099 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.126e-05/1.005, allocations: 20.47 kB / 1.099 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.492e-05/1.005, allocations: 25.02 kB / 1.099 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/1.005, allocations: 1.844 kB / 1.099 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/1.005, allocations: 1.25 kB / 1.099 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/1.005, allocations: 4 kB / 1.099 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006335/1.006, allocations: 432.8 kB / 1.1 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/1.006, allocations: 0.8438 kB / 1.1 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004006/1.006, allocations: 88.02 kB / 1.1 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/1.006, allocations: 0.9375 kB / 1.1 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/1.006, allocations: 15.38 kB / 1.1 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/1.006, allocations: 5.578 kB / 1.1 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.006, allocations: 7.875 kB / 1.1 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/1.008, allocations: 0.6365 MB / 1.101 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 8.985e-05/1.008, allocations: 103.9 kB / 1.101 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.99e-05/1.008, allocations: 0.5312 kB / 1.101 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003822/1.008, allocations: 73.22 kB / 1.101 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.755e-05/1.008, allocations: 10.25 kB / 1.101 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-05/1.008, allocations: 8.203 kB / 1.101 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003475/1.009, allocations: 217.1 kB / 1.101 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/1.009, allocations: 1.312 kB / 1.101 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003553/1.009, allocations: 40.69 kB / 1.101 GB, free: 15.16 MB / 0.8731 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.0002049/1.009, allocations: 102 kB / 1.101 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001408/1.011, allocations: 0.5252 MB / 1.102 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/1.011, allocations: 0 / 1.102 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000701/1.012, allocations: 278.9 kB / 1.102 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/1.012, allocations: 18.16 kB / 1.102 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/1.013, allocations: 0.6275 MB / 1.103 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/1.014, allocations: 0.7454 MB / 1.103 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/1.014, allocations: 35.69 kB / 1.103 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of SimCode: time 2.51e-07/1.014, allocations: 0 / 1.103 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of Templates: time 0.01123/1.025, allocations: 3.69 MB / 1.107 GB, free: 13.49 MB / 0.8731 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/jenkins1/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