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.0007644/0.0007644, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009005/0.0009005, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.861/0.861, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 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 1.736/1.736, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 0.9997 GB, free: 13.46 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.038e-05/2.18e-05, allocations: 8.812 kB / 0.9997 GB, free: 13.46 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002058/0.00208, allocations: 1.566 MB / 1.001 GB, free: 11.88 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0005908/0.00267, allocations: 491.6 kB / 1.002 GB, free: 11.4 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.282e-05/0.002723, allocations: 0 / 1.002 GB, free: 11.4 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.749e-05/0.002751, allocations: 15.8 kB / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.265e-05/0.002803, allocations: 7.938 kB / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.003019, allocations: 43.83 kB / 1.002 GB, free: 11.33 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.003123, allocations: 75.75 kB / 1.002 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.728e-05/0.003211, allocations: 8 kB / 1.002 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.003333, allocations: 55.83 kB / 1.002 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.969e-05/0.003393, allocations: 23.91 kB / 1.002 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.003408, allocations: 8 kB / 1.002 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 3.983e-05/0.003448, allocations: 15.98 kB / 1.002 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.622e-05/0.003464, allocations: 11.98 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.364e-05/0.003498, allocations: 27.91 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001196/0.003617, allocations: 71.81 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.00362, allocations: 3.938 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.082e-06/0.003621, allocations: 0 / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.507e-06/0.003625, allocations: 4 kB / 1.002 GB, free: 11.03 MB / 0.9636 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.0003954/0.00402, allocations: 298.1 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.004059, allocations: 16.73 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.936e-05/0.004088, allocations: 34.75 kB / 1.002 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.042e-05/0.004179, allocations: 20.88 kB / 1.002 GB, free: 10.63 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.004329, allocations: 113.8 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.004346, allocations: 8.312 kB / 1.003 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.004368, allocations: 16.31 kB / 1.003 GB, free: 10.47 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.004494, allocations: 78.2 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.261e-06/0.0045, allocations: 8.188 kB / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.00451, allocations: 4.125 kB / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.004515, allocations: 0 / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.455e-05/0.0046, allocations: 43.97 kB / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003483/0.004948, allocations: 279.8 kB / 1.003 GB, free: 10.02 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/0.005129, allocations: 86.48 kB / 1.003 GB, free: 9.926 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.986e-05/0.005179, allocations: 36.84 kB / 1.003 GB, free: 9.887 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.005193, allocations: 4 kB / 1.003 GB, free: 9.883 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00017/0.005363, allocations: 115.4 kB / 1.003 GB, free: 9.758 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=11): time 1.203e-06/0.005364, allocations: 3.938 kB / 1.003 GB, free: 9.754 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11): time 0.0002672/0.005631, allocations: 169.5 kB / 1.003 GB, free: 9.582 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.005669, allocations: 55.41 kB / 1.003 GB, free: 9.516 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.584e-05/0.005724, allocations: 117.8 kB / 1.003 GB, free: 9.391 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.005736, allocations: 29.7 kB / 1.004 GB, free: 9.355 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.571e-05/0.005771, allocations: 92.33 kB / 1.004 GB, free: 9.258 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.005797, allocations: 23.81 kB / 1.004 GB, free: 9.234 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-05/0.005833, allocations: 29.7 kB / 1.004 GB, free: 9.199 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.297e-05/0.005906, allocations: 318.8 kB / 1.004 GB, free: 8.879 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.89e-05/0.005955, allocations: 31.98 kB / 1.004 GB, free: 8.848 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.228e-05/0.006007, allocations: 56.52 kB / 1.004 GB, free: 8.789 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.315e-05/0.00609, allocations: 70.05 kB / 1.004 GB, free: 8.715 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.006093, allocations: 3.938 kB / 1.004 GB, free: 8.711 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001237/0.006216, allocations: 121.5 kB / 1.004 GB, free: 8.586 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.006229, allocations: 8 kB / 1.004 GB, free: 8.578 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.006234, allocations: 0 / 1.004 GB, free: 8.578 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.006245, allocations: 0 / 1.004 GB, free: 8.578 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.387e-05/0.006289, allocations: 15.98 kB / 1.004 GB, free: 8.562 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.006295, allocations: 3.984 kB / 1.004 GB, free: 8.559 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.9e-05/0.006334, allocations: 11.92 kB / 1.004 GB, free: 8.547 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.006341, allocations: 4 kB / 1.004 GB, free: 8.543 MB / 0.9636 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 6.527e-05/0.006406, allocations: 125.7 kB / 1.004 GB, free: 8.41 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.418e-06/0.006416, allocations: 11.95 kB / 1.004 GB, free: 8.398 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.212e-05/0.006438, allocations: 12.44 kB / 1.004 GB, free: 8.387 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.00644, allocations: 0 / 1.004 GB, free: 8.387 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.006444, allocations: 3.984 kB / 1.004 GB, free: 8.383 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.006449, allocations: 0 / 1.004 GB, free: 8.383 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001029/0.006552, allocations: 164.8 kB / 1.005 GB, free: 8.18 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.006553, allocations: 3.938 kB / 1.005 GB, free: 8.176 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.862e-05/0.006592, allocations: 8 kB / 1.005 GB, free: 8.168 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.006595, allocations: 3.984 kB / 1.005 GB, free: 8.164 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.325e-06/0.006603, allocations: 0 / 1.005 GB, free: 8.164 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.006604, allocations: 4.375 kB / 1.005 GB, free: 8.16 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.006605, allocations: 0 / 1.005 GB, free: 8.16 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002428/0.006848, allocations: 220.9 kB / 1.005 GB, free: 7.926 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.787e-06/0.006857, allocations: 7.984 kB / 1.005 GB, free: 7.918 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.006873, allocations: 7.938 kB / 1.005 GB, free: 7.91 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.873e-05/0.006902, allocations: 7.984 kB / 1.005 GB, free: 7.902 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.59e-05/0.006948, allocations: 19.91 kB / 1.005 GB, free: 7.883 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/0.006956, allocations: 8 kB / 1.005 GB, free: 7.875 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.413e-05/0.00699, allocations: 91.27 kB / 1.005 GB, free: 7.785 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7.1e-08/0.00699, allocations: 4.062 kB / 1.005 GB, free: 7.781 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001307/0.007121, allocations: 20 kB / 1.005 GB, free: 7.762 MB / 0.9636 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.0004015/0.007522, allocations: 0.7529 MB / 1.006 GB, free: 6.977 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001487/0.007671, allocations: 87.83 kB / 1.006 GB, free: 6.891 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.007672, allocations: 0 / 1.006 GB, free: 6.891 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.194e-05/0.007734, allocations: 43.98 kB / 1.006 GB, free: 6.848 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001518/0.007886, allocations: 22.28 kB / 1.006 GB, free: 6.828 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.009152, allocations: 1.479 MB / 1.007 GB, free: 5.258 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.259e-05/0.009195, allocations: 80.22 kB / 1.007 GB, free: 5.16 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.407e-05/0.009229, allocations: 8.719 kB / 1.007 GB, free: 5.152 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.009274, allocations: 32.44 kB / 1.007 GB, free: 5.121 MB / 0.9636 GB Notification: Performance of SimCode: time 4.41e-07/0.009274, allocations: 0 / 1.007 GB, free: 5.121 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01431/0.02359, allocations: 3.001 MB / 1.01 GB, free: 2.266 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.502/6.525, allocations: 5.469 kB / 1.01 GB, free: 2.266 MB / 0.9636 GB " [Timeout remaining time 293] (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/jenkins/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: 10.563123607076705]