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: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004291/0.004291, allocations: 101.5 kB / 15.73 MB, free: 5.98 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.001045/0.001045, allocations: 190.5 kB / 16.67 MB, free: 5.918 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.3/1.3, 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 9.1.3-maint.9.1.x/package.mo): time 2.236/2.236, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 67.91 kB / 0.9504 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6592/0.6604, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002212/0.6626, allocations: 1.564 MB / 1.089 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0005752/0.6632, allocations: 456 kB / 1.089 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.913e-05/0.6633, allocations: 0 / 1.089 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.578e-05/0.6633, allocations: 6.031 kB / 1.089 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.856e-05/0.6634, allocations: 7.141 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001665/0.6635, allocations: 36.19 kB / 1.089 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.777e-05/0.6636, allocations: 66.77 kB / 1.09 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.73e-05/0.6637, allocations: 14.83 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.705e-05/0.6638, allocations: 29.52 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.083e-05/0.6639, allocations: 40.53 kB / 1.09 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.786e-05/0.6639, allocations: 5.938 kB / 1.09 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.36e-05/0.664, allocations: 6.781 kB / 1.09 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.435e-05/0.664, allocations: 14.28 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.888e-05/0.664, allocations: 26.8 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.6642, allocations: 73.12 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.6642, allocations: 0 / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.152e-06/0.6642, allocations: 0 / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.6642, allocations: 5.094 kB / 1.09 GB, free: 3.719 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.0004499/0.6646, allocations: 370.8 kB / 1.09 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.6647, allocations: 9.281 kB / 1.09 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.773e-05/0.6647, allocations: 41.83 kB / 1.09 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.6647, allocations: 6.75 kB / 1.09 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.666e-05/0.6648, allocations: 175.7 kB / 1.09 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.6648, allocations: 4.703 kB / 1.09 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.756e-05/0.6649, allocations: 9.969 kB / 1.09 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.665, allocations: 90.55 kB / 1.09 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.6651, allocations: 4.594 kB / 1.09 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.6651, allocations: 1.656 kB / 1.09 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.6651, allocations: 1.125 kB / 1.09 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001316/0.6652, allocations: 43.33 kB / 1.09 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004604/0.6657, allocations: 324.5 kB / 1.091 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002438/0.6659, allocations: 98.72 kB / 1.091 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.258e-05/0.6661, allocations: 45.39 kB / 1.091 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.263e-05/0.6661, allocations: 1.094 kB / 1.091 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002365/0.6663, allocations: 120.6 kB / 1.091 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.583e-06/0.6663, allocations: 3.938 kB / 1.091 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0003728/0.6667, allocations: 167.8 kB / 1.091 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.413e-05/0.6667, allocations: 54.64 kB / 1.091 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.31e-05/0.6668, allocations: 111.8 kB / 1.091 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.6668, allocations: 27.48 kB / 1.091 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.641e-05/0.6668, allocations: 87.8 kB / 1.091 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.838e-05/0.6669, allocations: 37.92 kB / 1.092 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.253e-05/0.6669, allocations: 28.72 kB / 1.092 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.965e-05/0.667, allocations: 323.8 kB / 1.092 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.947e-05/0.6671, allocations: 28.97 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.399e-05/0.6671, allocations: 46.48 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.6673, allocations: 69.7 kB / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.6673, allocations: 4.875 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002034/0.6675, allocations: 107.1 kB / 1.092 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.6675, allocations: 4.938 kB / 1.092 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.6675, allocations: 1.922 kB / 1.092 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.6676, allocations: 0.9062 kB / 1.092 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.14e-05/0.6677, allocations: 11.33 kB / 1.092 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.6677, allocations: 2.266 kB / 1.092 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.539e-05/0.6678, allocations: 14.8 kB / 1.092 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.6678, allocations: 3.25 kB / 1.092 GB, free: 1.691 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 6.335e-05/0.6678, allocations: 132 kB / 1.092 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.915e-05/0.6679, allocations: 12.67 kB / 1.092 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.819e-05/0.6679, allocations: 10.61 kB / 1.092 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.6679, allocations: 5.438 kB / 1.092 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.6679, allocations: 1.328 kB / 1.092 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.6679, allocations: 0.7969 kB / 1.092 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.668, allocations: 199.1 kB / 1.092 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.668, allocations: 4.688 kB / 1.092 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.915e-05/0.6681, allocations: 13.8 kB / 1.092 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.6681, allocations: 0.6562 kB / 1.092 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.6682, allocations: 3.141 kB / 1.092 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.6682, allocations: 1.344 kB / 1.092 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.6682, allocations: 0.5625 kB / 1.092 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003647/0.6685, allocations: 224.2 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.836e-05/0.6686, allocations: 80.09 kB / 1.093 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.481e-05/0.6686, allocations: 12.52 kB / 1.093 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.669e-05/0.6687, allocations: 6.875 kB / 1.093 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.3e-05/0.6687, allocations: 18.27 kB / 1.093 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.6688, allocations: 5.844 kB / 1.093 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.767e-05/0.6688, allocations: 88.05 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6688, allocations: 0 / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002083/0.669, allocations: 24.06 kB / 1.093 GB, free: 0.9922 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.0004937/0.6695, allocations: 0.7519 MB / 1.094 GB, free: 352 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000224/0.6697, allocations: 92.34 kB / 1.094 GB, free: 324 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.6698, allocations: 0 / 1.094 GB, free: 324 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.6699, allocations: 62.59 kB / 1.094 GB, free: 304 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001935/0.6701, allocations: 17.36 kB / 1.094 GB, free: 296 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.6716, allocations: 1.504 MB / 1.095 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.6718, allocations: 0.6896 MB / 1.096 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.928e-05/0.6719, allocations: 10.23 kB / 1.096 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.267e-05/0.672, allocations: 22.95 kB / 1.096 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of SimCode: time 2.7e-07/0.672, allocations: 4.844 kB / 1.096 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01945/0.6914, allocations: 2.25 MB / 1.098 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.064/7.755, allocations: 7.969 kB / 1.098 GB, free: 13.86 MB / 0.8731 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[501]=3600.000000 File[1204]=2249.280000 Error: Could not read variable soc.Q_flow in file Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv. Warning: Get data of variable soc.Q_flow from file Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv failed! " Variables in the reference:time,soc.Q_flow,soc.SOC Variables in the result:time,soc.SOC