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.007721/0.007721, allocations: 98.55 kB / 15.73 MB, free: 6.047 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.001984/0.001984, allocations: 194 kB / 16.67 MB, free: 5.969 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.542/2.542, allocations: 437 MB / 0.7105 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001208, allocations: 68.12 kB / 1.018 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2442, allocations: 151.6 MB / 1.166 GB, free: 7.246 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002395/0.2467, allocations: 1.571 MB / 1.168 GB, free: 5.656 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0006367/0.2473, allocations: 447 kB / 1.168 GB, free: 5.215 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.544e-05/0.2474, allocations: 0 / 1.168 GB, free: 5.215 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.631e-05/0.2474, allocations: 11.92 kB / 1.168 GB, free: 5.203 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.042e-05/0.2475, allocations: 11.86 kB / 1.168 GB, free: 5.191 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001625/0.2477, allocations: 27.97 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.206e-05/0.2478, allocations: 63.84 kB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.104e-05/0.2478, allocations: 15.98 kB / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.685e-05/0.2479, allocations: 39.84 kB / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.404e-05/0.248, allocations: 35.84 kB / 1.168 GB, free: 5.012 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/0.248, allocations: 4 kB / 1.168 GB, free: 5.008 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.538e-05/0.248, allocations: 8 kB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.606e-05/0.2481, allocations: 23.91 kB / 1.168 GB, free: 4.977 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.995e-05/0.2481, allocations: 27.86 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.2482, allocations: 64 kB / 1.168 GB, free: 4.887 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2483, allocations: 3.984 kB / 1.168 GB, free: 4.883 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.224e-06/0.2483, allocations: 4 kB / 1.168 GB, free: 4.879 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.2483, allocations: 0 / 1.168 GB, free: 4.879 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.0005085/0.2488, allocations: 371.3 kB / 1.169 GB, free: 4.469 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.2488, allocations: 8.031 kB / 1.169 GB, free: 4.461 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.55e-05/0.2489, allocations: 38.73 kB / 1.169 GB, free: 4.414 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.107e-05/0.2489, allocations: 12.89 kB / 1.169 GB, free: 4.402 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.249, allocations: 176.2 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/0.249, allocations: 4.359 kB / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.273e-05/0.2491, allocations: 8.375 kB / 1.169 GB, free: 4.18 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001784/0.2492, allocations: 85.77 kB / 1.169 GB, free: 4.09 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.971e-06/0.2493, allocations: 4 kB / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.2493, allocations: 0 / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.2493, allocations: 0 / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001326/0.2494, allocations: 47.95 kB / 1.169 GB, free: 4.039 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004953/0.2499, allocations: 316.7 kB / 1.169 GB, free: 3.68 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000242/0.2502, allocations: 102.5 kB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.263e-05/0.2503, allocations: 44.84 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.2503, allocations: 4 kB / 1.17 GB, free: 3.52 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.2505, allocations: 123.4 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.673e-06/0.2506, allocations: 4 kB / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0003669/0.2509, allocations: 165.6 kB / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.251, allocations: 51.41 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.566e-05/0.251, allocations: 113.8 kB / 1.17 GB, free: 3.031 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.2511, allocations: 29.7 kB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.86e-05/0.2511, allocations: 92.36 kB / 1.17 GB, free: 2.902 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.2511, allocations: 27.75 kB / 1.17 GB, free: 2.875 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.693e-05/0.2512, allocations: 29.7 kB / 1.17 GB, free: 2.84 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.2513, allocations: 330.7 kB / 1.171 GB, free: 2.508 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.072e-05/0.2514, allocations: 27.98 kB / 1.171 GB, free: 2.48 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.304e-05/0.2515, allocations: 52.89 kB / 1.171 GB, free: 2.426 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.2516, allocations: 62.14 kB / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2516, allocations: 0 / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002091/0.2518, allocations: 121.4 kB / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/0.2519, allocations: 8 kB / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.2519, allocations: 4 kB / 1.171 GB, free: 2.223 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.367e-06/0.2519, allocations: 0 / 1.171 GB, free: 2.223 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.782e-05/0.252, allocations: 11.98 kB / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.252, allocations: 320 / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.421e-05/0.2521, allocations: 15.94 kB / 1.171 GB, free: 2.195 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.2521, allocations: 4 kB / 1.171 GB, free: 2.191 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 8.871e-05/0.2522, allocations: 133.7 kB / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.789e-05/0.2522, allocations: 7.953 kB / 1.171 GB, free: 2.043 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.537e-05/0.2522, allocations: 12.38 kB / 1.171 GB, free: 2.031 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.2522, allocations: 0 / 1.171 GB, free: 2.031 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2523, allocations: 0 / 1.171 GB, free: 2.031 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2523, allocations: 4 kB / 1.171 GB, free: 2.027 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001436/0.2524, allocations: 201.5 kB / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2524, allocations: 0 / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.915e-05/0.2525, allocations: 12 kB / 1.171 GB, free: 1.77 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2525, allocations: 0 / 1.171 GB, free: 1.77 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.2525, allocations: 3.984 kB / 1.171 GB, free: 1.766 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2525, allocations: 4 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.2525, allocations: 7.984 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003644/0.2529, allocations: 216.8 kB / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.153e-05/0.253, allocations: 85.05 kB / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.459e-05/0.253, allocations: 8.031 kB / 1.172 GB, free: 1.414 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.74e-05/0.2531, allocations: 7.984 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.692e-05/0.2531, allocations: 16.05 kB / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.809e-06/0.2531, allocations: 4 kB / 1.172 GB, free: 1.387 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.978e-05/0.2532, allocations: 91.27 kB / 1.172 GB, free: 1.297 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2532, allocations: 0 / 1.172 GB, free: 1.297 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002044/0.2534, allocations: 20 kB / 1.172 GB, free: 1.277 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.0006015/0.254, allocations: 0.7646 MB / 1.172 GB, free: 496 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002152/0.2543, allocations: 87.89 kB / 1.172 GB, free: 408 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.2543, allocations: 0 / 1.172 GB, free: 408 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.2544, allocations: 63.97 kB / 1.173 GB, free: 344 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000188/0.2546, allocations: 11.98 kB / 1.173 GB, free: 332 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.256, allocations: 1.498 MB / 1.174 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.2563, allocations: 0.6963 MB / 1.175 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.298e-05/0.2563, allocations: 4.766 kB / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.921e-05/0.2564, allocations: 27.36 kB / 1.175 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.2564, allocations: 0 / 1.175 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01656/0.2729, allocations: 2.26 MB / 1.177 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.033/7.306, allocations: 11.95 kB / 1.177 GB, free: 11.83 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