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.007909/0.007909, allocations: 99.95 kB / 15.73 MB, free: 6.066 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.002128/0.002128, allocations: 189.4 kB / 16.67 MB, free: 5.977 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.164 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.696/2.696, allocations: 437 MB / 0.7105 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 59.91 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2811, allocations: 151.6 MB / 1.166 GB, free: 7.273 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002679/0.2838, allocations: 1.578 MB / 1.168 GB, free: 5.676 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.000712/0.2846, allocations: 455 kB / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.606e-05/0.2846, allocations: 0 / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.579e-05/0.2847, allocations: 3.938 kB / 1.168 GB, free: 5.223 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.119e-05/0.2847, allocations: 11.86 kB / 1.168 GB, free: 5.211 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001787/0.2849, allocations: 31.95 kB / 1.168 GB, free: 5.18 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.994e-05/0.285, allocations: 63.84 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.833e-05/0.2851, allocations: 16 kB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.713e-05/0.2852, allocations: 39.84 kB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.624e-05/0.2853, allocations: 31.84 kB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.2853, allocations: 4 kB / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.672e-05/0.2853, allocations: 8 kB / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.527e-05/0.2854, allocations: 15.98 kB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.468e-05/0.2854, allocations: 31.84 kB / 1.168 GB, free: 4.973 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.2856, allocations: 64 kB / 1.168 GB, free: 4.91 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.2856, allocations: 0 / 1.168 GB, free: 4.91 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.173e-06/0.2856, allocations: 4 kB / 1.168 GB, free: 4.906 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.2856, allocations: 4 kB / 1.168 GB, free: 4.902 MB / 0.92 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.0005673/0.2862, allocations: 371.2 kB / 1.169 GB, free: 4.492 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.2862, allocations: 8.031 kB / 1.169 GB, free: 4.484 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.386e-05/0.2863, allocations: 38.75 kB / 1.169 GB, free: 4.438 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.286e-05/0.2863, allocations: 12.88 kB / 1.169 GB, free: 4.426 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.2864, allocations: 180.2 kB / 1.169 GB, free: 4.211 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.2865, allocations: 384 / 1.169 GB, free: 4.211 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.743e-05/0.2865, allocations: 12.38 kB / 1.169 GB, free: 4.199 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/0.2867, allocations: 89.75 kB / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.2867, allocations: 0 / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.2867, allocations: 0 / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2867, allocations: 0 / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.2869, allocations: 55.83 kB / 1.169 GB, free: 4.051 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005526/0.2874, allocations: 316.8 kB / 1.169 GB, free: 3.691 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002827/0.2877, allocations: 98.53 kB / 1.17 GB, free: 3.586 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.2878, allocations: 44.84 kB / 1.17 GB, free: 3.539 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.357e-05/0.2879, allocations: 4 kB / 1.17 GB, free: 3.535 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002551/0.2881, allocations: 123.2 kB / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.2881, allocations: 0 / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0004023/0.2885, allocations: 165.6 kB / 1.17 GB, free: 3.234 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/0.2886, allocations: 51.41 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.2888, allocations: 117.8 kB / 1.17 GB, free: 3.047 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.2888, allocations: 25.7 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.286e-05/0.2888, allocations: 88.38 kB / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.474e-05/0.2889, allocations: 43.81 kB / 1.17 GB, free: 2.883 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.357e-05/0.2889, allocations: 29.7 kB / 1.17 GB, free: 2.848 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.2891, allocations: 318.8 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.308e-05/0.2892, allocations: 31.92 kB / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.279e-05/0.2893, allocations: 49.69 kB / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.2894, allocations: 61.7 kB / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2895, allocations: 4 kB / 1.171 GB, free: 2.371 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002202/0.2897, allocations: 109.6 kB / 1.171 GB, free: 2.258 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.2897, allocations: 10.02 kB / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.2897, allocations: 4 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.2897, allocations: 0 / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.419e-05/0.2898, allocations: 11.94 kB / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.2898, allocations: 3.938 kB / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.383e-05/0.2899, allocations: 15.98 kB / 1.171 GB, free: 2.215 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-06/0.2899, allocations: 0 / 1.171 GB, free: 2.215 MB / 0.92 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.0001058/0.29, allocations: 125.8 kB / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.128e-05/0.2901, allocations: 15.94 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.651e-05/0.2901, allocations: 8.375 kB / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.2901, allocations: 0 / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.2901, allocations: 0 / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.2901, allocations: 4 kB / 1.171 GB, free: 2.055 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001859/0.2903, allocations: 197.5 kB / 1.171 GB, free: 1.812 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2903, allocations: 0 / 1.171 GB, free: 1.812 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.796e-05/0.2904, allocations: 15.98 kB / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.2904, allocations: 4 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.2904, allocations: 0 / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2904, allocations: 0 / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2904, allocations: 7.938 kB / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004049/0.2909, allocations: 221.4 kB / 1.171 GB, free: 1.551 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.328e-05/0.2909, allocations: 85 kB / 1.171 GB, free: 1.449 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.291, allocations: 8.031 kB / 1.171 GB, free: 1.441 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.219e-05/0.291, allocations: 12.05 kB / 1.172 GB, free: 1.43 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.173e-05/0.2911, allocations: 15.97 kB / 1.172 GB, free: 1.414 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.2911, allocations: 4 kB / 1.172 GB, free: 1.41 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.599e-05/0.2912, allocations: 95.25 kB / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2912, allocations: 0 / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002064/0.2914, allocations: 20 kB / 1.172 GB, free: 1.297 MB / 0.92 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.000773/0.2922, allocations: 0.7669 MB / 1.172 GB, free: 0.5039 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002254/0.2924, allocations: 87.89 kB / 1.172 GB, free: 428 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.2924, allocations: 0 / 1.172 GB, free: 428 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.2925, allocations: 59.98 kB / 1.173 GB, free: 368 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001907/0.2927, allocations: 18.11 kB / 1.173 GB, free: 352 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001703/0.2945, allocations: 1.493 MB / 1.174 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.2948, allocations: 0.6963 MB / 1.175 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.607e-05/0.2948, allocations: 4.766 kB / 1.175 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.447e-05/0.2949, allocations: 24.3 kB / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.2949, allocations: 0 / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02662/0.3215, allocations: 2.263 MB / 1.177 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.687/8.009, allocations: 16.05 kB / 1.177 GB, free: 11.85 MB / 0.9356 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