Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_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_latest_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.001489/0.001489, allocations: 100.1 kB / 15.88 MB, free: 4 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.001661/0.001661, allocations: 201.1 kB / 16.8 MB, free: 6.82 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.424/1.424, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.717/2.717, allocations: 461.9 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 68.56 kB / 0.8991 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3316, allocations: 157.4 MB / 1.053 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003525/0.3352, allocations: 1.631 MB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008495/0.3361, allocations: 450.8 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.783e-05/0.3362, allocations: 4 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.457e-05/0.3363, allocations: 4 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.991e-05/0.3363, allocations: 3.938 kB / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.3366, allocations: 31.89 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.3367, allocations: 67.78 kB / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.3369, allocations: 8 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.337, allocations: 31.92 kB / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.622e-05/0.3371, allocations: 27.89 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.197e-05/0.3371, allocations: 4 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.928e-05/0.3371, allocations: 4 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.452e-05/0.3372, allocations: 15.92 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.636e-05/0.3373, allocations: 27.86 kB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.3374, allocations: 48.19 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3374, allocations: 0 / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.272e-06/0.3374, allocations: 0 / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.3374, allocations: 0 / 1.055 GB, free: 5.93 MB / 0.8106 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.0007004/0.3381, allocations: 375.3 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.3382, allocations: 12.03 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.849e-05/0.3382, allocations: 8.844 kB / 1.055 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/0.3384, allocations: 180.2 kB / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.777e-05/0.3384, allocations: 384 / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.791e-05/0.3385, allocations: 16.31 kB / 1.056 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002306/0.3387, allocations: 77.95 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3387, allocations: 4 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.3387, allocations: 7.984 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.3388, allocations: 4 kB / 1.056 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001505/0.3389, allocations: 47.91 kB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006925/0.3396, allocations: 320.7 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.34, allocations: 98.55 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.3401, allocations: 44.84 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.3401, allocations: 4.031 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003351/0.3405, allocations: 119.2 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 2.034e-06/0.3405, allocations: 7.938 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.000536/0.341, allocations: 161.6 kB / 1.056 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.3411, allocations: 59.39 kB / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.3412, allocations: 113.8 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/0.3413, allocations: 29.7 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.931e-05/0.3413, allocations: 88.28 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.868e-05/0.3414, allocations: 23.7 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.383e-05/0.3415, allocations: 29.72 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000205/0.3417, allocations: 326.8 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.101e-05/0.3418, allocations: 27.98 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.3419, allocations: 49.7 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.3421, allocations: 69.62 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3421, allocations: 0 / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002716/0.3424, allocations: 113.5 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.3424, allocations: 4 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.3424, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.3424, allocations: 4 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.738e-05/0.3425, allocations: 15.92 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.3425, allocations: 0 / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.581e-05/0.3426, allocations: 19.83 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.3427, allocations: 4 kB / 1.057 GB, free: 3.277 MB / 0.8106 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.0001493/0.3428, allocations: 127.2 kB / 1.058 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.314e-05/0.3428, allocations: 8 kB / 1.058 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.966e-05/0.3429, allocations: 8.375 kB / 1.058 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.3429, allocations: 3.984 kB / 1.058 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.3429, allocations: 11.91 kB / 1.058 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3429, allocations: 0 / 1.058 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002374/0.3432, allocations: 205.6 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3432, allocations: 0 / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.469e-05/0.3433, allocations: 15.92 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.3433, allocations: 0 / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.3433, allocations: 0 / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3433, allocations: 4 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3433, allocations: 0 / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004406/0.3438, allocations: 217.6 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.569e-05/0.3438, allocations: 81.02 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.82e-05/0.3439, allocations: 12.03 kB / 1.058 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.314e-05/0.344, allocations: 7.984 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.087e-05/0.3441, allocations: 16.05 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.3441, allocations: 7.984 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.102e-05/0.3441, allocations: 87.28 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3442, allocations: 0 / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002313/0.3444, allocations: 23.98 kB / 1.058 GB, free: 2.363 MB / 0.8106 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.0001874/0.3446, allocations: 103.2 kB / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002646/0.3449, allocations: 95.83 kB / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3449, allocations: 4 kB / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.00014/0.345, allocations: 67.91 kB / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.3453, allocations: 8 kB / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006577/0.3459, allocations: 304.8 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.3463, allocations: 0.6926 MB / 1.059 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.919e-05/0.3463, allocations: 15.44 kB / 1.059 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of SimCode: time 5.41e-07/0.3464, allocations: 0 / 1.059 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of Templates: time 0.00341/0.3498, allocations: 1.12 MB / 1.061 GB, free: 15.9 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches