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.009485/0.009485, allocations: 96.81 kB / 15.73 MB, free: 6.031 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.002126/0.002126, allocations: 196.3 kB / 16.68 MB, free: 5.961 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.869/2.869, allocations: 469.8 MB / 0.7425 GB, free: 7.383 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 67.89 kB / 1.065 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3336, allocations: 159.1 MB / 1.221 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002546/0.3361, allocations: 1.568 MB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0007765/0.3369, allocations: 442.9 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.12e-05/0.3369, allocations: 4 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.962e-05/0.3369, allocations: 3.938 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.951e-05/0.337, allocations: 7.875 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002066/0.3372, allocations: 35.95 kB / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.712e-05/0.3373, allocations: 71.77 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.3374, allocations: 8 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001047/0.3375, allocations: 35.84 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.602e-05/0.3376, allocations: 27.91 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.112e-05/0.3376, allocations: 12 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.434e-05/0.3376, allocations: 4 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.71e-05/0.3377, allocations: 23.86 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.845e-05/0.3377, allocations: 27.86 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001147/0.3378, allocations: 67.77 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.3378, allocations: 0 / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of FrontEnd: time 9.22e-07/0.3378, allocations: 0 / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.3378, allocations: 0 / 1.223 GB, free: 11.48 MB / 0.9825 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.0005632/0.3384, allocations: 379.2 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.3384, allocations: 8.031 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.103e-05/0.3385, allocations: 8.891 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.3386, allocations: 168.3 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.3386, allocations: 8.359 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/0.3386, allocations: 12.31 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001832/0.3388, allocations: 85.95 kB / 1.224 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.3388, allocations: 0 / 1.224 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.3388, allocations: 3.938 kB / 1.224 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3388, allocations: 0 / 1.224 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.3389, allocations: 47.97 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005286/0.3395, allocations: 320.6 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002522/0.3397, allocations: 86.53 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.701e-05/0.3398, allocations: 36.84 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.3398, allocations: 0 / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002271/0.3401, allocations: 115.3 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.3401, allocations: 0 / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0003767/0.3404, allocations: 177.5 kB / 1.224 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.3405, allocations: 59.41 kB / 1.224 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.747e-05/0.3406, allocations: 113.8 kB / 1.224 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.3406, allocations: 25.7 kB / 1.224 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/0.3406, allocations: 92.36 kB / 1.225 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.235e-05/0.3407, allocations: 31.89 kB / 1.225 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.761e-05/0.3407, allocations: 29.7 kB / 1.225 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002017/0.3409, allocations: 322.8 kB / 1.225 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.37e-05/0.341, allocations: 39.97 kB / 1.225 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.887e-05/0.3411, allocations: 53.52 kB / 1.225 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001285/0.3412, allocations: 57.7 kB / 1.225 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3412, allocations: 0 / 1.225 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002036/0.3414, allocations: 121.5 kB / 1.225 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.3415, allocations: 11.94 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.3415, allocations: 0 / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.3415, allocations: 4 kB / 1.225 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.835e-05/0.3416, allocations: 15.98 kB / 1.225 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.3416, allocations: 0 / 1.225 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.356e-05/0.3416, allocations: 4 kB / 1.225 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.769e-06/0.3417, allocations: 4 kB / 1.225 GB, free: 8.855 MB / 0.9825 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 8.551e-05/0.3417, allocations: 129.7 kB / 1.225 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.863e-05/0.3418, allocations: 7.953 kB / 1.225 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.958e-05/0.3418, allocations: 8.375 kB / 1.225 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.3418, allocations: 12.03 kB / 1.225 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3418, allocations: 0 / 1.225 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.3418, allocations: 0 / 1.225 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.3419, allocations: 197.5 kB / 1.226 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3419, allocations: 0 / 1.226 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.742e-05/0.342, allocations: 8 kB / 1.226 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.342, allocations: 0 / 1.226 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.342, allocations: 11.98 kB / 1.226 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.342, allocations: 0 / 1.226 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.342, allocations: 0 / 1.226 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003603/0.3424, allocations: 220.8 kB / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.385e-05/0.3424, allocations: 89.03 kB / 1.226 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.3425, allocations: 3.984 kB / 1.226 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.548e-05/0.3425, allocations: 11.98 kB / 1.226 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.12e-05/0.3426, allocations: 11.98 kB / 1.226 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.3426, allocations: 8 kB / 1.226 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.186e-05/0.3427, allocations: 87.33 kB / 1.226 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3427, allocations: 0 / 1.226 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002019/0.3429, allocations: 20 kB / 1.226 GB, free: 7.941 MB / 0.9825 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.0002139/0.3431, allocations: 111.2 kB / 1.226 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002331/0.3433, allocations: 96.42 kB / 1.226 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3433, allocations: 0 / 1.226 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.3435, allocations: 47.91 kB / 1.226 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.3437, allocations: 16.42 kB / 1.226 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005059/0.3442, allocations: 267.7 kB / 1.227 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.3444, allocations: 0.6923 MB / 1.227 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.308e-05/0.3444, allocations: 8.656 kB / 1.227 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.669e-05/0.3445, allocations: 15.44 kB / 1.227 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.3445, allocations: 3.938 kB / 1.227 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of Templates: time 0.003431/0.3479, allocations: 1.099 MB / 1.228 GB, free: 5.543 MB / 0.9825 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=480 -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/jenkins/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