Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_10_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.001543/0.001543, allocations: 108 kB / 15.6 MB, free: 132 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.001763/0.001764, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.529/2.529, allocations: 437 MB / 0.7104 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 67.89 kB / 0.8694 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5643/0.5658, allocations: 151.6 MB / 1.017 GB, free: 2.469 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002503/0.5683, allocations: 1.559 MB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006276/0.569, allocations: 455 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.261e-05/0.569, allocations: 0 / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.85e-05/0.5691, allocations: 3.938 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.434e-05/0.5691, allocations: 11.92 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001704/0.5693, allocations: 27.91 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.393e-05/0.5694, allocations: 71.77 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.885e-05/0.5695, allocations: 23.89 kB / 1.02 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.093e-05/0.5696, allocations: 27.92 kB / 1.02 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.028e-05/0.5697, allocations: 35.83 kB / 1.02 GB, free: 252 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.169e-05/0.5697, allocations: 8 kB / 1.02 GB, free: 244 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.457e-05/0.5697, allocations: 4 kB / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.706e-05/0.5698, allocations: 19.92 kB / 1.02 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.978e-05/0.5698, allocations: 27.86 kB / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001089/0.5699, allocations: 62.09 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.5699, allocations: 7.984 kB / 1.02 GB, free: 124 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.122e-06/0.5699, allocations: 4 kB / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.177e-06/0.57, allocations: 0 / 1.02 GB, free: 120 kB / 0.7637 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.0005326/0.5705, allocations: 368.9 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.5705, allocations: 12.03 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.618e-05/0.5706, allocations: 38.73 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.149e-05/0.5706, allocations: 12.84 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.944e-05/0.5707, allocations: 172.2 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.5708, allocations: 8.359 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.132e-05/0.5708, allocations: 8.375 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.571, allocations: 89.7 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.571, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.571, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.571, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001243/0.5711, allocations: 43.97 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005169/0.5717, allocations: 324.7 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.5719, allocations: 106.5 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.892e-05/0.572, allocations: 48.84 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.572, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002258/0.5723, allocations: 111.3 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.5723, allocations: 0 / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003621/0.5727, allocations: 173.6 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.5727, allocations: 55.34 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.126e-05/0.5728, allocations: 109.8 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.5728, allocations: 29.7 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.136e-05/0.5728, allocations: 100.3 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.5729, allocations: 23.66 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.731e-05/0.5729, allocations: 33.7 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.76e-05/0.573, allocations: 322.8 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.614e-05/0.5731, allocations: 27.98 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.066e-05/0.5732, allocations: 45.7 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.5733, allocations: 70.08 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.5733, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002112/0.5736, allocations: 121.4 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.5736, allocations: 4 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.5736, allocations: 4 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.5736, allocations: 0 / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.45e-05/0.5737, allocations: 11.98 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.5737, allocations: 4 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.721e-05/0.5738, allocations: 11.94 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.535e-06/0.5738, allocations: 4 kB / 1.022 GB, free: 13.43 MB / 0.7794 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 8.584e-05/0.5739, allocations: 129.7 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.813e-05/0.5739, allocations: 7.906 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.878e-05/0.574, allocations: 12.38 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.574, allocations: 0 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.574, allocations: 4 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.574, allocations: 0 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001499/0.5741, allocations: 209.5 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.5741, allocations: 4 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.297e-05/0.5742, allocations: 8 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.5742, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.5742, allocations: 7.984 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.5743, allocations: 4 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.5743, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003574/0.5746, allocations: 212.9 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.5747, allocations: 89.09 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.5747, allocations: 8 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.592e-05/0.5748, allocations: 7.984 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.616e-05/0.5749, allocations: 15.98 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.5749, allocations: 4 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.203e-05/0.5749, allocations: 91.56 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5749, allocations: 0 / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000217/0.5752, allocations: 20 kB / 1.023 GB, free: 12.51 MB / 0.7794 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.0006296/0.5758, allocations: 0.7606 MB / 1.024 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002156/0.576, allocations: 87.89 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.576, allocations: 0 / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.5762, allocations: 63.97 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001976/0.5764, allocations: 22.22 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.5779, allocations: 1.489 MB / 1.025 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002507/0.5781, allocations: 0.6885 MB / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.562e-05/0.5782, allocations: 12.66 kB / 1.026 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.233e-05/0.5783, allocations: 23.38 kB / 1.026 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of SimCode: time 3.01e-07/0.5783, allocations: 0 / 1.026 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.5975, allocations: 2.225 MB / 1.028 GB, free: 7.102 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.533/8.13, allocations: 12 kB / 1.028 GB, free: 7.09 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv. Warning: Get data of variable soc.Q_flow from file Buildings_10_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