Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001424/0.001424, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.001591/0.001591, allocations: 217.8 kB / 22.26 MB, free: 5.082 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.319/1.319, allocations: 230.6 MB / 256 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.902/2.902, allocations: 0.505 GB / 0.8101 GB, free: 22.04 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_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.001897/0.001897, allocations: 69.02 kB / 1.177 GB, free: 17.13 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2864, allocations: 180.2 MB / 1.353 GB, free: 8.473 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00273/0.2892, allocations: 1.601 MB / 1.354 GB, free: 6.859 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0008128/0.29, allocations: 0.5104 MB / 1.355 GB, free: 6.344 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.004e-05/0.29, allocations: 3.938 kB / 1.355 GB, free: 6.34 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.461e-05/0.2901, allocations: 3.938 kB / 1.355 GB, free: 6.336 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.8e-05/0.2901, allocations: 11.88 kB / 1.355 GB, free: 6.324 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.2903, allocations: 47.88 kB / 1.355 GB, free: 6.277 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001207/0.2905, allocations: 67.78 kB / 1.355 GB, free: 6.211 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.397e-05/0.2905, allocations: 11.98 kB / 1.355 GB, free: 6.199 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.2907, allocations: 43.84 kB / 1.355 GB, free: 6.156 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.682e-05/0.2907, allocations: 35.84 kB / 1.355 GB, free: 6.121 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.2908, allocations: 8 kB / 1.355 GB, free: 6.113 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.316e-05/0.2908, allocations: 11.98 kB / 1.355 GB, free: 6.102 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.892e-05/0.2908, allocations: 12 kB / 1.355 GB, free: 6.09 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.259e-05/0.2909, allocations: 27.86 kB / 1.355 GB, free: 6.062 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001273/0.291, allocations: 71.98 kB / 1.355 GB, free: 5.992 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.291, allocations: 0 / 1.355 GB, free: 5.992 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.242e-06/0.291, allocations: 0 / 1.355 GB, free: 5.992 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.291, allocations: 0 / 1.355 GB, free: 5.992 MB / 1.045 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.0005051/0.2915, allocations: 310.1 kB / 1.356 GB, free: 5.66 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.2915, allocations: 12.03 kB / 1.356 GB, free: 5.648 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.361e-05/0.2916, allocations: 34.73 kB / 1.356 GB, free: 5.605 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.2917, allocations: 16.89 kB / 1.356 GB, free: 5.59 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001702/0.2919, allocations: 126.4 kB / 1.356 GB, free: 5.441 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.2919, allocations: 8.375 kB / 1.356 GB, free: 5.434 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.401e-05/0.2919, allocations: 4.375 kB / 1.356 GB, free: 5.43 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001767/0.2921, allocations: 89.77 kB / 1.356 GB, free: 5.336 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.2921, allocations: 0 / 1.356 GB, free: 5.336 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.2921, allocations: 7.984 kB / 1.356 GB, free: 5.328 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.2921, allocations: 0 / 1.356 GB, free: 5.328 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001196/0.2922, allocations: 43.91 kB / 1.356 GB, free: 5.285 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004753/0.2927, allocations: 295.7 kB / 1.356 GB, free: 4.953 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002252/0.2929, allocations: 86.55 kB / 1.356 GB, free: 4.859 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.266e-05/0.293, allocations: 36.84 kB / 1.356 GB, free: 4.82 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.293, allocations: 3.938 kB / 1.356 GB, free: 4.816 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.2933, allocations: 119.3 kB / 1.356 GB, free: 4.688 MB / 1.045 GB Notification: Performance of pre-optimization done (n=11): time 1.293e-06/0.2933, allocations: 0 / 1.356 GB, free: 4.688 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0003556/0.2936, allocations: 173.5 kB / 1.357 GB, free: 4.512 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.2937, allocations: 55.39 kB / 1.357 GB, free: 4.445 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.787e-05/0.2937, allocations: 117.8 kB / 1.357 GB, free: 4.32 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.2938, allocations: 29.7 kB / 1.357 GB, free: 4.285 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 4.439e-05/0.2938, allocations: 84.38 kB / 1.357 GB, free: 4.199 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.403e-05/0.2938, allocations: 39.67 kB / 1.357 GB, free: 4.16 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/0.2939, allocations: 29.72 kB / 1.357 GB, free: 4.125 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.294, allocations: 326.8 kB / 1.357 GB, free: 3.797 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.746e-05/0.2941, allocations: 31.98 kB / 1.357 GB, free: 3.766 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.219e-05/0.2942, allocations: 49.69 kB / 1.357 GB, free: 3.711 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.2943, allocations: 65.69 kB / 1.357 GB, free: 3.641 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2943, allocations: 4 kB / 1.357 GB, free: 3.637 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001984/0.2945, allocations: 117.5 kB / 1.357 GB, free: 3.516 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.2945, allocations: 5.562 kB / 1.358 GB, free: 3.512 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.2945, allocations: 0 / 1.358 GB, free: 3.512 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.2945, allocations: 0 / 1.358 GB, free: 3.512 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.249e-05/0.2946, allocations: 19.92 kB / 1.358 GB, free: 3.492 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.2946, allocations: 0 / 1.358 GB, free: 3.492 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.81e-05/0.2947, allocations: 11.94 kB / 1.358 GB, free: 3.48 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.2947, allocations: 8 kB / 1.358 GB, free: 3.473 MB / 1.045 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.915e-05/0.2948, allocations: 129.7 kB / 1.358 GB, free: 3.336 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.459e-05/0.2948, allocations: 4 kB / 1.358 GB, free: 3.332 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.301e-05/0.2948, allocations: 16.36 kB / 1.358 GB, free: 3.316 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.2948, allocations: 0 / 1.358 GB, free: 3.316 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.2948, allocations: 0 / 1.358 GB, free: 3.316 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2948, allocations: 0 / 1.358 GB, free: 3.316 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001457/0.295, allocations: 176.7 kB / 1.358 GB, free: 3.102 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.295, allocations: 0 / 1.358 GB, free: 3.102 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.142e-05/0.2951, allocations: 11.98 kB / 1.358 GB, free: 3.09 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2951, allocations: 4 kB / 1.358 GB, free: 3.086 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.2951, allocations: 8.312 kB / 1.358 GB, free: 3.078 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2951, allocations: 0 / 1.358 GB, free: 3.078 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2951, allocations: 0 / 1.358 GB, free: 3.078 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003542/0.2954, allocations: 220.9 kB / 1.358 GB, free: 2.844 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.137e-05/0.2954, allocations: 11.83 kB / 1.358 GB, free: 2.832 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.39e-05/0.2955, allocations: 8.031 kB / 1.358 GB, free: 2.824 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.057e-05/0.2955, allocations: 12.05 kB / 1.358 GB, free: 2.812 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.2956, allocations: 15.97 kB / 1.358 GB, free: 2.797 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-06/0.2956, allocations: 4 kB / 1.358 GB, free: 2.793 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.816e-05/0.2956, allocations: 91.27 kB / 1.358 GB, free: 2.703 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.2956, allocations: 0 / 1.358 GB, free: 2.703 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000188/0.2958, allocations: 20 kB / 1.358 GB, free: 2.684 MB / 1.045 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.0006122/0.2964, allocations: 0.7588 MB / 1.359 GB, free: 1.898 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002058/0.2966, allocations: 87.94 kB / 1.359 GB, free: 1.812 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.2966, allocations: 0 / 1.359 GB, free: 1.812 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 9.872e-05/0.2967, allocations: 47.91 kB / 1.359 GB, free: 1.766 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001765/0.2969, allocations: 15.98 kB / 1.359 GB, free: 1.75 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/0.2984, allocations: 1.503 MB / 1.361 GB, free: 168 kB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.2987, allocations: 0.6924 MB / 1.361 GB, free: 15.45 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.049e-05/0.2987, allocations: 12.66 kB / 1.361 GB, free: 15.43 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.832e-05/0.2988, allocations: 19.44 kB / 1.361 GB, free: 15.41 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.2988, allocations: 0 / 1.361 GB, free: 15.41 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02824/0.327, allocations: 2.462 MB / 1.364 GB, free: 13.09 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.579/9.906, allocations: 5.172 kB / 1.364 GB, free: 13.08 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv --start-time 0 --stop-time 3600 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv. Warning: Get data of variable soc.Q_flow from file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.901311251000152]