Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 108 kB / 15.99 MB, free: 6.363 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.001502/0.001502, allocations: 191.5 kB / 16.91 MB, free: 6.195 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.427/1.427, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.753/2.753, allocations: 469.8 MB / 0.7427 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001975/0.001975, allocations: 70.16 kB / 0.9087 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3627, allocations: 159.1 MB / 1.064 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003196/0.3659, allocations: 1.619 MB / 1.066 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008181/0.3668, allocations: 451 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.45e-05/0.3668, allocations: 0 / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.819e-05/0.3669, allocations: 3.938 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.632e-05/0.367, allocations: 7.922 kB / 1.066 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.3672, allocations: 27.97 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.3673, allocations: 71.78 kB / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.3674, allocations: 8 kB / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.3676, allocations: 39.89 kB / 1.066 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.074e-05/0.3677, allocations: 31.84 kB / 1.066 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.3677, allocations: 4 kB / 1.066 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.452e-05/0.3677, allocations: 8 kB / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.973e-05/0.3677, allocations: 15.94 kB / 1.066 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.902e-05/0.3678, allocations: 27.86 kB / 1.066 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.3679, allocations: 52.19 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.3679, allocations: 4 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3679, allocations: 0 / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.368, allocations: 0 / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006715/0.3686, allocations: 375.2 kB / 1.067 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.3687, allocations: 8.031 kB / 1.067 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.218e-05/0.3687, allocations: 8.875 kB / 1.067 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.3689, allocations: 180.2 kB / 1.067 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.379e-05/0.3689, allocations: 4.375 kB / 1.067 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.971e-05/0.369, allocations: 12.38 kB / 1.067 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.3692, allocations: 89.88 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.3692, allocations: 0 / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.3692, allocations: 0 / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3692, allocations: 0 / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.3694, allocations: 47.97 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006275/0.37, allocations: 328.6 kB / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002767/0.3703, allocations: 94.55 kB / 1.068 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.3704, allocations: 48.83 kB / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.3704, allocations: 4 kB / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000303/0.3707, allocations: 119.2 kB / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.3707, allocations: 0 / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.000427/0.3712, allocations: 169.7 kB / 1.068 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.3712, allocations: 51.41 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.528e-05/0.3713, allocations: 117.8 kB / 1.068 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.3714, allocations: 29.7 kB / 1.068 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.34e-05/0.3714, allocations: 88.38 kB / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.794e-05/0.3715, allocations: 23.7 kB / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.309e-05/0.3715, allocations: 25.72 kB / 1.068 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3717, allocations: 326.7 kB / 1.069 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.981e-05/0.3718, allocations: 27.98 kB / 1.069 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.354e-05/0.3719, allocations: 53.69 kB / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001386/0.372, allocations: 69.64 kB / 1.069 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.372, allocations: 0 / 1.069 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002143/0.3722, allocations: 110 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.3723, allocations: 4 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3723, allocations: 4 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3723, allocations: 0 / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.189e-05/0.3724, allocations: 15.98 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.3724, allocations: 0 / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.439e-05/0.3725, allocations: 27.77 kB / 1.069 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.076e-06/0.3725, allocations: 0 / 1.069 GB, free: 10.06 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition4,$whenCondition3,soc.suspend,soc.discharged,$PRE.soc.discharged,soc.charged,$PRE.soc.charged,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001162/0.3726, allocations: 131 kB / 1.069 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.763e-05/0.3727, allocations: 11.84 kB / 1.069 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.455e-05/0.3727, allocations: 12.36 kB / 1.069 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3727, allocations: 0 / 1.069 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3727, allocations: 0 / 1.069 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3727, allocations: 4 kB / 1.069 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/0.3729, allocations: 201.7 kB / 1.069 GB, free: 9.648 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3729, allocations: 0 / 1.069 GB, free: 9.648 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.865e-05/0.373, allocations: 11.98 kB / 1.069 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.373, allocations: 4.031 kB / 1.069 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.373, allocations: 0 / 1.069 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.373, allocations: 0 / 1.069 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.373, allocations: 4 kB / 1.069 GB, free: 9.629 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004059/0.3735, allocations: 228.8 kB / 1.069 GB, free: 9.387 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.444e-05/0.3735, allocations: 77.11 kB / 1.069 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.843e-05/0.3735, allocations: 12.03 kB / 1.069 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.185e-05/0.3736, allocations: 7.984 kB / 1.069 GB, free: 9.273 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.189e-05/0.3737, allocations: 15.97 kB / 1.069 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.3737, allocations: 4 kB / 1.069 GB, free: 9.254 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.663e-05/0.3738, allocations: 87.28 kB / 1.07 GB, free: 9.168 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3738, allocations: 0 / 1.07 GB, free: 9.168 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002141/0.374, allocations: 23.98 kB / 1.07 GB, free: 9.145 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (soc.SOC) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend) * Number of discrete states: 2 (soc.discharged,soc.charged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001589/0.3742, allocations: 111.3 kB / 1.07 GB, free: 9.027 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002584/0.3744, allocations: 91.83 kB / 1.07 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3744, allocations: 0 / 1.07 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.3746, allocations: 71.84 kB / 1.07 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.3748, allocations: 15.98 kB / 1.07 GB, free: 8.852 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005847/0.3754, allocations: 295 kB / 1.07 GB, free: 8.531 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.3757, allocations: 0.6924 MB / 1.071 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.489e-05/0.3758, allocations: 15.44 kB / 1.071 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of SimCode: time 4.01e-07/0.3758, allocations: 0 / 1.071 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of Templates: time 0.003038/0.3788, allocations: 1.142 MB / 1.072 GB, free: 6.656 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches