Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 114.3 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 216.4 kB / 22.25 MB, free: 5.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.331/1.331, allocations: 230.6 MB / 256 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.863/2.863, allocations: 0.49 GB / 0.7951 GB, free: 33.41 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 72.84 kB / 1.154 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2818, allocations: 176.1 MB / 1.326 GB, free: 1.965 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002666/0.2845, allocations: 1.608 MB / 1.327 GB, free: 356 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008566/0.2853, allocations: 0.5182 MB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.81e-05/0.2854, allocations: 3.938 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.731e-05/0.2854, allocations: 7.938 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.982e-05/0.2855, allocations: 11.92 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.2857, allocations: 43.89 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.2858, allocations: 67.84 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.123e-05/0.2859, allocations: 7.984 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.286, allocations: 43.84 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.683e-05/0.2861, allocations: 31.84 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.549e-05/0.2861, allocations: 12 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.134e-05/0.2861, allocations: 8 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.784e-05/0.2862, allocations: 19.97 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.55e-05/0.2862, allocations: 31.86 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.2864, allocations: 67.98 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2864, allocations: 0 / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2864, allocations: 0 / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.919e-06/0.2864, allocations: 0 / 1.328 GB, free: 15.47 MB / 1.029 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.0005301/0.2869, allocations: 302.1 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.2869, allocations: 20.02 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.876e-05/0.287, allocations: 30.75 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.2871, allocations: 20.88 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.2873, allocations: 122.4 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.2873, allocations: 12.31 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.2874, allocations: 8.359 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.2875, allocations: 85.77 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.2875, allocations: 0 / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.2876, allocations: 8 kB / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.2876, allocations: 3.938 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001192/0.2877, allocations: 47.91 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004871/0.2882, allocations: 291.8 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002501/0.2884, allocations: 86.56 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.337e-05/0.2885, allocations: 37 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.2885, allocations: 3.984 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002176/0.2887, allocations: 111.3 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.2887, allocations: 0 / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.000388/0.2891, allocations: 177.6 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.2892, allocations: 55.34 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.325e-05/0.2893, allocations: 113.8 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.2893, allocations: 33.7 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.589e-05/0.2893, allocations: 88.36 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.265e-05/0.2894, allocations: 27.75 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-05/0.2894, allocations: 29.7 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.2896, allocations: 326.8 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.53e-05/0.2896, allocations: 31.97 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.927e-05/0.2897, allocations: 45.7 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.2898, allocations: 69.62 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2898, allocations: 4 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002027/0.2901, allocations: 114 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.2901, allocations: 4.375 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.2901, allocations: 4 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.2901, allocations: 0 / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.241e-05/0.2902, allocations: 19.92 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.2902, allocations: 3.938 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.363e-05/0.2902, allocations: 8 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-06/0.2902, allocations: 4 kB / 1.331 GB, free: 12.96 MB / 1.029 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.779e-05/0.2903, allocations: 122.3 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.64e-05/0.2903, allocations: 11.95 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.066e-05/0.2904, allocations: 16.38 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.2904, allocations: 0 / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.2904, allocations: 0 / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2904, allocations: 0 / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001638/0.2905, allocations: 176.6 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.2905, allocations: 0 / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.126e-05/0.2906, allocations: 11.94 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2906, allocations: 0 / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.2906, allocations: 3.984 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2906, allocations: 0 / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2906, allocations: 4 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003566/0.291, allocations: 220.9 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.24e-05/0.291, allocations: 7.891 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.291, allocations: 12.02 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.88e-05/0.2911, allocations: 7.984 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.747e-05/0.2911, allocations: 11.98 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.2912, allocations: 12.05 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.864e-05/0.2912, allocations: 91.22 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.2912, allocations: 0 / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001915/0.2914, allocations: 23.98 kB / 1.331 GB, free: 12.17 MB / 1.029 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.0006319/0.292, allocations: 0.7536 MB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002105/0.2922, allocations: 87.89 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2922, allocations: 0 / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.885e-05/0.2923, allocations: 51.86 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001789/0.2925, allocations: 12.27 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.2942, allocations: 1.516 MB / 1.334 GB, free: 9.648 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.2945, allocations: 0.6924 MB / 1.334 GB, free: 8.93 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.769e-05/0.2945, allocations: 8.672 kB / 1.334 GB, free: 8.922 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.339e-05/0.2946, allocations: 27.36 kB / 1.334 GB, free: 8.895 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.2946, allocations: 0 / 1.334 GB, free: 8.895 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02971/0.3243, allocations: 2.444 MB / 1.337 GB, free: 6.582 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.779/10.1, allocations: 15.56 kB / 1.337 GB, free: 6.574 MB / 1.029 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable soc.Q_flow in file Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv. Warning: Get data of variable soc.Q_flow from file Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.02098710499922]