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.009632/0.009632, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001894/0.001894, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.623/2.623, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 67.89 kB / 1.054 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8956/0.897, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003197/0.9002, allocations: 1.57 MB / 1.209 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007656/0.901, allocations: 442.9 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.521e-05/0.9011, allocations: 0 / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.103e-05/0.9011, allocations: 7.938 kB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.779e-05/0.9012, allocations: 7.938 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.9015, allocations: 27.91 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001254/0.9016, allocations: 83.69 kB / 1.21 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.9017, allocations: 8 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.9018, allocations: 31.92 kB / 1.21 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.984e-05/0.9019, allocations: 35.89 kB / 1.21 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.233e-05/0.902, allocations: 8 kB / 1.21 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.496e-05/0.902, allocations: 7.938 kB / 1.21 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.41e-05/0.902, allocations: 19.92 kB / 1.21 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.678e-05/0.9021, allocations: 27.92 kB / 1.21 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001366/0.9022, allocations: 63.77 kB / 1.21 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.9023, allocations: 0 / 1.21 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.483e-06/0.9023, allocations: 0 / 1.21 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.081e-05/0.9023, allocations: 0 / 1.21 GB, free: 11.31 MB / 0.9356 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.0006343/0.9029, allocations: 377 kB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.903, allocations: 12.03 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.447e-05/0.903, allocations: 4.938 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.9031, allocations: 172.2 kB / 1.211 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.9032, allocations: 8.359 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.904e-05/0.9032, allocations: 4.375 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.9034, allocations: 89.7 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.9034, allocations: 0 / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.9035, allocations: 8 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.9035, allocations: 7.984 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.9036, allocations: 43.97 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006216/0.9042, allocations: 324.6 kB / 1.211 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003792/0.9046, allocations: 102.5 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.965e-05/0.9048, allocations: 44.84 kB / 1.211 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.9048, allocations: 4 kB / 1.211 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002865/0.9051, allocations: 111.3 kB / 1.211 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.733e-06/0.9051, allocations: 0 / 1.211 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0004319/0.9055, allocations: 173.6 kB / 1.211 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.9056, allocations: 59.34 kB / 1.211 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.926e-05/0.9057, allocations: 109.8 kB / 1.212 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.9057, allocations: 33.7 kB / 1.212 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.345e-05/0.9058, allocations: 88.36 kB / 1.212 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.872e-05/0.9058, allocations: 27.56 kB / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.025e-05/0.9059, allocations: 29.7 kB / 1.212 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001596/0.9061, allocations: 330.7 kB / 1.212 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.687e-05/0.9062, allocations: 31.98 kB / 1.212 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.85e-05/0.9063, allocations: 45.7 kB / 1.212 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.9064, allocations: 70.02 kB / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.9064, allocations: 0 / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000229/0.9066, allocations: 117.4 kB / 1.212 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.9067, allocations: 6.344 kB / 1.212 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.9067, allocations: 4 kB / 1.212 GB, free: 8.695 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.9067, allocations: 4 kB / 1.212 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.001e-05/0.9068, allocations: 11.98 kB / 1.212 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.9068, allocations: 0 / 1.212 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.243e-05/0.9069, allocations: 8 kB / 1.212 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.9069, allocations: 4 kB / 1.212 GB, free: 8.668 MB / 0.9356 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.0001/0.907, allocations: 125.7 kB / 1.212 GB, free: 8.535 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.786e-05/0.907, allocations: 7.906 kB / 1.212 GB, free: 8.527 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.842e-05/0.9071, allocations: 20.38 kB / 1.213 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.9071, allocations: 0 / 1.213 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.9071, allocations: 0 / 1.213 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.9071, allocations: 0 / 1.213 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001637/0.9073, allocations: 201.6 kB / 1.213 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.9073, allocations: 4 kB / 1.213 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.715e-05/0.9074, allocations: 8 kB / 1.213 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.9074, allocations: 4 kB / 1.213 GB, free: 8.242 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.9074, allocations: 3.984 kB / 1.213 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.9074, allocations: 0 / 1.213 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.9074, allocations: 0 / 1.213 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003873/0.9078, allocations: 224.8 kB / 1.213 GB, free: 8 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.565e-05/0.9079, allocations: 85 kB / 1.213 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.837e-05/0.9079, allocations: 12.03 kB / 1.213 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.27e-05/0.908, allocations: 7.984 kB / 1.213 GB, free: 7.879 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.347e-05/0.908, allocations: 11.98 kB / 1.213 GB, free: 7.867 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.9081, allocations: 4 kB / 1.213 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.816e-05/0.9081, allocations: 95.33 kB / 1.213 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9081, allocations: 0 / 1.213 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002086/0.9083, allocations: 16 kB / 1.213 GB, free: 7.754 MB / 0.9356 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.0001366/0.9085, allocations: 115.2 kB / 1.213 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002445/0.9087, allocations: 91.83 kB / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.9087, allocations: 0 / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.9089, allocations: 67.92 kB / 1.213 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001993/0.9091, allocations: 15.92 kB / 1.213 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004967/0.9096, allocations: 261.4 kB / 1.214 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002428/0.9098, allocations: 0.6846 MB / 1.214 GB, free: 6.469 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.677e-05/0.9099, allocations: 8.656 kB / 1.214 GB, free: 6.461 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.748e-05/0.9099, allocations: 15.44 kB / 1.214 GB, free: 6.445 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.9099, allocations: 0 / 1.214 GB, free: 6.445 MB / 0.9356 GB Notification: Performance of Templates: time 0.003373/0.9133, allocations: 1.091 MB / 1.215 GB, free: 5.359 MB / 0.9356 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