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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001002/0.001002, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008358/0.008359, allocations: 171.7 kB / 16.27 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.404/1.404, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.7/2.7, allocations: 462.7 MB / 0.7364 GB, free: 228 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003603, allocations: 12.88 kB / 0.9028 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3161, allocations: 159.6 MB / 1.059 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00179/0.3179, allocations: 1.298 MB / 1.06 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006987/0.3186, allocations: 450.8 kB / 1.06 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.968e-05/0.3187, allocations: 0 / 1.06 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.616e-05/0.3187, allocations: 0 / 1.06 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.297e-05/0.3188, allocations: 11.91 kB / 1.06 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/0.319, allocations: 23.92 kB / 1.06 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.3191, allocations: 71.78 kB / 1.06 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.915e-05/0.3192, allocations: 11.97 kB / 1.06 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.3193, allocations: 27.92 kB / 1.061 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.342e-05/0.3194, allocations: 27.91 kB / 1.061 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.3194, allocations: 4 kB / 1.061 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.39e-05/0.3195, allocations: 4 kB / 1.061 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.621e-05/0.3195, allocations: 11.92 kB / 1.061 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.298e-05/0.3196, allocations: 53.56 kB / 1.061 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.675e-05/0.3197, allocations: 60.09 kB / 1.061 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.3197, allocations: 0 / 1.061 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3197, allocations: 0 / 1.061 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.3197, allocations: 0 / 1.061 GB, free: 3.363 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.0005246/0.3202, allocations: 367.4 kB / 1.061 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3203, allocations: 8.031 kB / 1.061 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.073e-05/0.3203, allocations: 8.844 kB / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.3204, allocations: 172.3 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.3205, allocations: 8.359 kB / 1.061 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.686e-05/0.3205, allocations: 8.375 kB / 1.061 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.3207, allocations: 85.95 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.3207, allocations: 4 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.3207, allocations: 0 / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.3207, allocations: 0 / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001463/0.3209, allocations: 55.89 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005286/0.3214, allocations: 332.5 kB / 1.062 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/0.3217, allocations: 98.55 kB / 1.062 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.766e-05/0.3218, allocations: 44.84 kB / 1.062 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.3218, allocations: 0 / 1.062 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.3221, allocations: 123.5 kB / 1.062 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.3221, allocations: 0 / 1.062 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0003788/0.3225, allocations: 177.5 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.3225, allocations: 59.41 kB / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.015e-05/0.3226, allocations: 113.8 kB / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.3227, allocations: 29.7 kB / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.208e-05/0.3227, allocations: 92.3 kB / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.609e-05/0.3227, allocations: 23.62 kB / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.3228, allocations: 21.7 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.3229, allocations: 322.8 kB / 1.063 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.031e-05/0.323, allocations: 35.97 kB / 1.063 GB, free: 1 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.665e-05/0.3231, allocations: 49.7 kB / 1.063 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001385/0.3232, allocations: 62.14 kB / 1.063 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3232, allocations: 0 / 1.063 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002101/0.3234, allocations: 129.4 kB / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.3235, allocations: 8 kB / 1.063 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.3235, allocations: 0 / 1.063 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.3235, allocations: 0 / 1.063 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.966e-05/0.3236, allocations: 23.92 kB / 1.063 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.3236, allocations: 0 / 1.063 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.764e-05/0.3237, allocations: 11.94 kB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.3237, allocations: 4 kB / 1.063 GB, free: 0.6992 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.0001156/0.3238, allocations: 131.3 kB / 1.063 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.699e-05/0.3238, allocations: 11.91 kB / 1.063 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.922e-05/0.3239, allocations: 8.375 kB / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3239, allocations: 0 / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.3239, allocations: 0 / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.3239, allocations: 0 / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001495/0.324, allocations: 205.5 kB / 1.063 GB, free: 300 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.324, allocations: 0 / 1.063 GB, free: 300 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.534e-05/0.3241, allocations: 8 kB / 1.063 GB, free: 292 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3241, allocations: 7.938 kB / 1.063 GB, free: 284 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.3242, allocations: 3.984 kB / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3242, allocations: 0 / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3242, allocations: 4 kB / 1.063 GB, free: 276 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003668/0.3245, allocations: 216.8 kB / 1.064 GB, free: 40 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.348e-05/0.3246, allocations: 89.11 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.3246, allocations: 7.984 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.403e-05/0.3247, allocations: 11.98 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.875e-05/0.3248, allocations: 11.98 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.3248, allocations: 4 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.34e-05/0.3248, allocations: 91.27 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3248, allocations: 0 / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002024/0.325, allocations: 20 kB / 1.064 GB, free: 15.79 MB / 0.8262 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.0001228/0.3252, allocations: 107.2 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002293/0.3254, allocations: 103.8 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3254, allocations: 7.938 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.3256, allocations: 63.92 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002016/0.3258, allocations: 9.859 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000475/0.3262, allocations: 311.1 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.3265, allocations: 0.6887 MB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.241e-05/0.3266, allocations: 8.656 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/0.3266, allocations: 15.44 kB / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3266, allocations: 0 / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of Templates: time 0.003146/0.3298, allocations: 0.9197 MB / 1.066 GB, free: 13.51 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/jenkins/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