Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_9_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_9_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.001442/0.001442, allocations: 104.1 kB / 16.41 MB, free: 6.516 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.001637/0.001637, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.14 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.314/2.314, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 67.89 kB / 0.9516 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.009/1.011, allocations: 140.4 MB / 1.089 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003053/1.014, allocations: 1.562 MB / 1.09 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007575/1.014, allocations: 451.9 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.812e-05/1.014, allocations: 0 / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.011e-05/1.015, allocations: 4.594 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.954e-05/1.015, allocations: 10.88 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002141/1.015, allocations: 41.3 kB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001263/1.015, allocations: 65.11 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/1.015, allocations: 12.09 kB / 1.091 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/1.015, allocations: 33 kB / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.133e-05/1.015, allocations: 32.97 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.348e-05/1.015, allocations: 6.438 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.982e-05/1.015, allocations: 6.562 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.913e-05/1.015, allocations: 13.94 kB / 1.091 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.856e-05/1.015, allocations: 35.17 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001492/1.016, allocations: 62.53 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/1.016, allocations: 3.938 kB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.854e-06/1.016, allocations: 1.156 kB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.093e-05/1.016, allocations: 0 / 1.091 GB, free: 3.938 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000562/1.016, allocations: 370.1 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/1.016, allocations: 9.719 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.966e-05/1.016, allocations: 9.25 kB / 1.091 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.837e-05/1.016, allocations: 185.8 kB / 1.091 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/1.016, allocations: 7.453 kB / 1.091 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.018e-05/1.016, allocations: 10.84 kB / 1.091 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/1.017, allocations: 82.06 kB / 1.092 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/1.017, allocations: 0 / 1.092 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/1.017, allocations: 6.312 kB / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/1.017, allocations: 1.031 kB / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/1.017, allocations: 43.33 kB / 1.092 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005248/1.017, allocations: 318 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002657/1.018, allocations: 99.88 kB / 1.092 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.414e-05/1.018, allocations: 46.27 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/1.018, allocations: 1.75 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002833/1.018, allocations: 120.7 kB / 1.092 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.382e-06/1.018, allocations: 0 / 1.092 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004341/1.019, allocations: 168.2 kB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/1.019, allocations: 53.06 kB / 1.092 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.681e-05/1.019, allocations: 120.4 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/1.019, allocations: 31.17 kB / 1.093 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.665e-05/1.019, allocations: 88.08 kB / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.303e-05/1.019, allocations: 29.77 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.973e-05/1.019, allocations: 28.98 kB / 1.093 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.983e-05/1.019, allocations: 323.5 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.904e-05/1.019, allocations: 28.08 kB / 1.093 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/1.019, allocations: 47.62 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/1.019, allocations: 69.95 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/1.019, allocations: 0 / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000212/1.019, allocations: 115.2 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/1.019, allocations: 6.25 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/1.02, allocations: 0.6562 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/1.02, allocations: 1.469 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.988e-05/1.02, allocations: 19.08 kB / 1.093 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/1.02, allocations: 1.562 kB / 1.093 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.053e-05/1.02, allocations: 15.48 kB / 1.093 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/1.02, allocations: 3.094 kB / 1.093 GB, free: 1.945 MB / 0.8575 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 7.969e-05/1.02, allocations: 128.6 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.84e-05/1.02, allocations: 5.078 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.956e-05/1.02, allocations: 10.06 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/1.02, allocations: 1.719 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/1.02, allocations: 0.5625 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/1.02, allocations: 9.391 kB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/1.02, allocations: 203.2 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/1.02, allocations: 0.5625 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.634e-05/1.02, allocations: 14.28 kB / 1.094 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/1.02, allocations: 0 / 1.094 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/1.02, allocations: 6.609 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/1.02, allocations: 2.25 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.02, allocations: 4 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003891/1.021, allocations: 217.2 kB / 1.094 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.86e-05/1.021, allocations: 80.72 kB / 1.094 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/1.021, allocations: 7.078 kB / 1.094 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.121e-05/1.021, allocations: 10.92 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.867e-05/1.021, allocations: 10.2 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/1.021, allocations: 10.61 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.437e-05/1.021, allocations: 87.52 kB / 1.094 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/1.021, allocations: 0 / 1.094 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002038/1.021, allocations: 20.36 kB / 1.094 GB, free: 1.262 MB / 0.8575 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.000141/1.021, allocations: 117.1 kB / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002612/1.021, allocations: 90.56 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/1.021, allocations: 4.625 kB / 1.094 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001342/1.022, allocations: 63.09 kB / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/1.022, allocations: 12.72 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005204/1.022, allocations: 295.4 kB / 1.095 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001284/1.023, allocations: 0.6891 MB / 1.095 GB, free: 180 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.289e-05/1.023, allocations: 17.86 kB / 1.095 GB, free: 168 kB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/1.023, allocations: 0 / 1.095 GB, free: 168 kB / 0.8575 GB Notification: Performance of Templates: time 0.003371/1.026, allocations: 1.136 MB / 1.096 GB, free: 80 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches