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.001336/0.001336, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001489/0.001489, allocations: 212 kB / 22.24 MB, free: 5.242 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.358/1.358, allocations: 230.6 MB / 256 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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 3.086/3.086, allocations: 0.5107 GB / 0.8158 GB, free: 17.86 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.001978/0.001978, allocations: 68.81 kB / 1.186 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3153, allocations: 181.9 MB / 1.363 GB, free: 14.12 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00285/0.3181, allocations: 1.581 MB / 1.365 GB, free: 12.53 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0008733/0.319, allocations: 483.9 kB / 1.365 GB, free: 12.05 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.564e-05/0.3191, allocations: 8 kB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.977e-05/0.3191, allocations: 3.938 kB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.477e-05/0.3192, allocations: 7.875 kB / 1.365 GB, free: 12.03 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.3194, allocations: 47.88 kB / 1.365 GB, free: 11.98 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001282/0.3195, allocations: 67.84 kB / 1.366 GB, free: 11.92 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.456e-05/0.3196, allocations: 11.98 kB / 1.366 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.3198, allocations: 35.91 kB / 1.366 GB, free: 11.87 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.161e-05/0.3198, allocations: 31.84 kB / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.3198, allocations: 8 kB / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.411e-05/0.3199, allocations: 15.94 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.798e-05/0.3199, allocations: 19.91 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.46e-05/0.32, allocations: 19.94 kB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.3201, allocations: 75.98 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.3201, allocations: 0 / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3201, allocations: 0 / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.3201, allocations: 0 / 1.366 GB, free: 11.7 MB / 1.061 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.00057/0.3207, allocations: 302.1 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.3207, allocations: 12.03 kB / 1.366 GB, free: 11.37 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.209e-05/0.3208, allocations: 42.73 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.3209, allocations: 20.84 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001925/0.3211, allocations: 122.5 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.3211, allocations: 4.375 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.942e-05/0.3211, allocations: 12.31 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001912/0.3213, allocations: 85.75 kB / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.3213, allocations: 0 / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.3214, allocations: 0 / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.3214, allocations: 4 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001213/0.3215, allocations: 43.97 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005036/0.322, allocations: 279.7 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002599/0.3222, allocations: 86.52 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.82e-05/0.3223, allocations: 40.84 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.3223, allocations: 4 kB / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002224/0.3226, allocations: 119.3 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/0.3226, allocations: 0 / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0003895/0.323, allocations: 173.5 kB / 1.367 GB, free: 10.24 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.227e-05/0.323, allocations: 51.41 kB / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.772e-05/0.3231, allocations: 113.8 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.3231, allocations: 25.7 kB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.383e-05/0.3232, allocations: 92.36 kB / 1.367 GB, free: 9.926 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.132e-05/0.3232, allocations: 27.75 kB / 1.367 GB, free: 9.898 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.803e-05/0.3233, allocations: 33.7 kB / 1.367 GB, free: 9.859 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.3234, allocations: 331.1 kB / 1.368 GB, free: 9.527 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.8e-05/0.3235, allocations: 31.98 kB / 1.368 GB, free: 9.496 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.138e-05/0.3236, allocations: 49.64 kB / 1.368 GB, free: 9.441 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001329/0.3237, allocations: 61.7 kB / 1.368 GB, free: 9.375 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3237, allocations: 3.938 kB / 1.368 GB, free: 9.371 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002049/0.3239, allocations: 117.5 kB / 1.368 GB, free: 9.25 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.3239, allocations: 4 kB / 1.368 GB, free: 9.246 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.3239, allocations: 4 kB / 1.368 GB, free: 9.242 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.324, allocations: 8 kB / 1.368 GB, free: 9.234 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.185e-05/0.324, allocations: 11.98 kB / 1.368 GB, free: 9.223 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.324, allocations: 0 / 1.368 GB, free: 9.223 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.204e-05/0.3241, allocations: 15.89 kB / 1.368 GB, free: 9.207 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.3241, allocations: 0 / 1.368 GB, free: 9.207 MB / 1.061 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.0001033/0.3242, allocations: 134.8 kB / 1.368 GB, free: 9.066 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.659e-05/0.3243, allocations: 7.953 kB / 1.368 GB, free: 9.059 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.874e-05/0.3243, allocations: 8.375 kB / 1.368 GB, free: 9.047 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3243, allocations: 4 kB / 1.368 GB, free: 9.043 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3243, allocations: 4 kB / 1.368 GB, free: 9.039 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3243, allocations: 3.984 kB / 1.368 GB, free: 9.035 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.3244, allocations: 160.9 kB / 1.368 GB, free: 8.836 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3245, allocations: 3.984 kB / 1.368 GB, free: 8.832 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.853e-05/0.3245, allocations: 8 kB / 1.368 GB, free: 8.824 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3245, allocations: 0 / 1.368 GB, free: 8.824 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.3245, allocations: 7.984 kB / 1.368 GB, free: 8.816 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3245, allocations: 0 / 1.368 GB, free: 8.816 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3245, allocations: 0 / 1.368 GB, free: 8.816 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003771/0.3249, allocations: 220.8 kB / 1.369 GB, free: 8.582 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.718e-05/0.3249, allocations: 15.91 kB / 1.369 GB, free: 8.566 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.325, allocations: 8 kB / 1.369 GB, free: 8.559 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.793e-05/0.325, allocations: 7.984 kB / 1.369 GB, free: 8.551 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.644e-05/0.3251, allocations: 11.98 kB / 1.369 GB, free: 8.539 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.3251, allocations: 7.984 kB / 1.369 GB, free: 8.531 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.224e-05/0.3251, allocations: 87.28 kB / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.3251, allocations: 0 / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001948/0.3253, allocations: 23.98 kB / 1.369 GB, free: 8.422 MB / 1.061 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.0006657/0.326, allocations: 0.7617 MB / 1.369 GB, free: 7.633 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002164/0.3262, allocations: 83.89 kB / 1.369 GB, free: 7.551 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3262, allocations: 0 / 1.369 GB, free: 7.551 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.3263, allocations: 51.92 kB / 1.37 GB, free: 7.5 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001928/0.3265, allocations: 11.98 kB / 1.37 GB, free: 7.488 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.3281, allocations: 1.515 MB / 1.371 GB, free: 5.891 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.332e-05/0.3282, allocations: 75.33 kB / 1.371 GB, free: 5.797 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.372e-05/0.3283, allocations: 8.672 kB / 1.371 GB, free: 5.789 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.761e-05/0.3283, allocations: 27.42 kB / 1.371 GB, free: 5.762 MB / 1.061 GB Notification: Performance of SimCode: time 4.01e-07/0.3283, allocations: 4 kB / 1.371 GB, free: 5.758 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0311/0.3594, allocations: 2.866 MB / 1.374 GB, free: 3.035 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.14, allocations: 4.547 kB / 1.374 GB, free: 3.035 MB / 1.061 GB " [Timeout remaining time 289] (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: 17.449829088989645]