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.0007838/0.0007838, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0007806/0.0007806, allocations: 165.9 kB / 22.45 MB, free: 2.113 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.8556/0.8556, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.685/1.685, allocations: 377.8 MB / 0.6221 GB, free: 8.652 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 0.981 GB, free: 2.586 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.049e-05/2.227e-05, allocations: 2.281 kB / 0.981 GB, free: 2.582 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002131/0.002153, allocations: 1.589 MB / 0.9825 GB, free: 0.9844 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0006497/0.002803, allocations: 0.4909 MB / 0.983 GB, free: 500 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.687e-05/0.00286, allocations: 0 / 0.983 GB, free: 500 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.846e-05/0.002888, allocations: 3.938 kB / 0.983 GB, free: 496 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 5.777e-05/0.002946, allocations: 7.922 kB / 0.983 GB, free: 488 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002293/0.003175, allocations: 35.89 kB / 0.983 GB, free: 452 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.003291, allocations: 83.77 kB / 0.9831 GB, free: 368 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.003392, allocations: 7.984 kB / 0.9831 GB, free: 360 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.003545, allocations: 55.83 kB / 0.9832 GB, free: 304 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 6.185e-05/0.003607, allocations: 19.97 kB / 0.9832 GB, free: 284 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.532e-05/0.003622, allocations: 4 kB / 0.9832 GB, free: 280 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 4.337e-05/0.003666, allocations: 15.94 kB / 0.9832 GB, free: 264 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.821e-05/0.003684, allocations: 19.91 kB / 0.9832 GB, free: 244 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.705e-05/0.003721, allocations: 19.97 kB / 0.9833 GB, free: 224 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001313/0.003852, allocations: 75.77 kB / 0.9833 GB, free: 148 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.003855, allocations: 0 / 0.9833 GB, free: 148 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.502e-06/0.003857, allocations: 4 kB / 0.9833 GB, free: 144 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.003862, allocations: 0 / 0.9833 GB, free: 144 kB / 0.9323 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.0004787/0.004341, allocations: 302.1 kB / 0.9836 GB, free: 15.82 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.004382, allocations: 8.031 kB / 0.9836 GB, free: 15.81 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.266e-05/0.004414, allocations: 42.73 kB / 0.9837 GB, free: 15.76 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.004518, allocations: 12.92 kB / 0.9837 GB, free: 15.75 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001834/0.004701, allocations: 129.6 kB / 0.9838 GB, free: 15.59 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.004722, allocations: 8.375 kB / 0.9838 GB, free: 15.59 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.097e-05/0.004743, allocations: 12.36 kB / 0.9838 GB, free: 15.57 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001417/0.004885, allocations: 90.12 kB / 0.9839 GB, free: 15.48 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.004892, allocations: 192 / 0.9839 GB, free: 15.48 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.004903, allocations: 4.125 kB / 0.9839 GB, free: 15.48 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.004909, allocations: 4 kB / 0.9839 GB, free: 15.47 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.072e-05/0.00499, allocations: 39.91 kB / 0.984 GB, free: 15.43 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003785/0.005368, allocations: 271.9 kB / 0.9842 GB, free: 15.12 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.005565, allocations: 94.45 kB / 0.9843 GB, free: 15.02 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.929e-05/0.005614, allocations: 36.78 kB / 0.9844 GB, free: 14.98 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.005629, allocations: 4 kB / 0.9844 GB, free: 14.98 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001682/0.005797, allocations: 111.4 kB / 0.9845 GB, free: 14.86 MB / 0.948 GB Notification: Performance of pre-optimization done (n=11): time 1.213e-06/0.005799, allocations: 0 / 0.9845 GB, free: 14.86 MB / 0.948 GB Notification: Performance of matching and sorting (n=11): time 0.0002725/0.006071, allocations: 169.6 kB / 0.9846 GB, free: 14.69 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.00611, allocations: 63.34 kB / 0.9847 GB, free: 14.61 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.864e-05/0.006168, allocations: 109.8 kB / 0.9848 GB, free: 14.5 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.006182, allocations: 33.7 kB / 0.9848 GB, free: 14.46 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.711e-05/0.006219, allocations: 92.3 kB / 0.9849 GB, free: 14.36 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.526e-05/0.006244, allocations: 27.75 kB / 0.9849 GB, free: 14.34 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.64e-05/0.00628, allocations: 29.7 kB / 0.985 GB, free: 14.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.081e-05/0.006351, allocations: 322.8 kB / 0.9853 GB, free: 13.98 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.719e-05/0.006398, allocations: 27.98 kB / 0.9853 GB, free: 13.95 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.332e-05/0.006452, allocations: 49.7 kB / 0.9853 GB, free: 13.89 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.353e-05/0.006535, allocations: 65.7 kB / 0.9854 GB, free: 13.82 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.006539, allocations: 3.938 kB / 0.9854 GB, free: 13.82 MB / 0.948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001233/0.006662, allocations: 117.5 kB / 0.9855 GB, free: 13.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.006675, allocations: 4 kB / 0.9855 GB, free: 13.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.006681, allocations: 4 kB / 0.9855 GB, free: 13.69 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.006692, allocations: 0 / 0.9855 GB, free: 13.69 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.32e-05/0.006736, allocations: 15.92 kB / 0.9855 GB, free: 13.68 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.006741, allocations: 384 / 0.9855 GB, free: 13.68 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.98e-05/0.006781, allocations: 15.95 kB / 0.9856 GB, free: 13.66 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.006787, allocations: 4 kB / 0.9856 GB, free: 13.66 MB / 0.948 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.791e-05/0.006855, allocations: 128.4 kB / 0.9857 GB, free: 13.52 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.024e-05/0.006865, allocations: 11.89 kB / 0.9857 GB, free: 13.51 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.216e-05/0.006887, allocations: 12.44 kB / 0.9857 GB, free: 13.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.006891, allocations: 4 kB / 0.9857 GB, free: 13.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.006895, allocations: 0 / 0.9857 GB, free: 13.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.006898, allocations: 0 / 0.9857 GB, free: 13.5 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/0.007, allocations: 160.8 kB / 0.9859 GB, free: 13.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.007001, allocations: 0 / 0.9859 GB, free: 13.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.065e-05/0.007042, allocations: 8 kB / 0.9859 GB, free: 13.29 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.007044, allocations: 7.938 kB / 0.9859 GB, free: 13.28 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.007056, allocations: 11.98 kB / 0.9859 GB, free: 13.27 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.007057, allocations: 0 / 0.9859 GB, free: 13.27 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.007058, allocations: 0 / 0.9859 GB, free: 13.27 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.007302, allocations: 217.6 kB / 0.9861 GB, free: 13.04 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 9.418e-06/0.007312, allocations: 15.92 kB / 0.9861 GB, free: 13.02 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.007329, allocations: 7.984 kB / 0.9861 GB, free: 13.02 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.996e-05/0.007359, allocations: 7.984 kB / 0.9861 GB, free: 13.01 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.007405, allocations: 11.98 kB / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.007413, allocations: 12.05 kB / 0.9862 GB, free: 12.98 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.956e-05/0.007443, allocations: 87.28 kB / 0.9862 GB, free: 12.9 MB / 0.948 GB Notification: Performance of sort global known variables: time 4e-08/0.007443, allocations: 0 / 0.9862 GB, free: 12.9 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001289/0.007572, allocations: 23.98 kB / 0.9863 GB, free: 12.88 MB / 0.948 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.0004059/0.007978, allocations: 0.7567 MB / 0.987 GB, free: 12.09 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001492/0.008127, allocations: 87.89 kB / 0.9871 GB, free: 12 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.008128, allocations: 0 / 0.9871 GB, free: 12 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.782e-05/0.008196, allocations: 51.98 kB / 0.9871 GB, free: 11.95 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001556/0.008352, allocations: 11.97 kB / 0.9871 GB, free: 11.94 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.009387, allocations: 1.468 MB / 0.9886 GB, free: 10.39 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.376e-05/0.009431, allocations: 79.58 kB / 0.9887 GB, free: 10.29 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.472e-05/0.009466, allocations: 8.719 kB / 0.9887 GB, free: 10.28 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.622e-05/0.009512, allocations: 20.88 kB / 0.9887 GB, free: 10.26 MB / 0.948 GB Notification: Performance of SimCode: time 8.11e-07/0.009513, allocations: 4 kB / 0.9887 GB, free: 10.26 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.02716, allocations: 3.025 MB / 0.9916 GB, free: 7.391 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.57/6.597, allocations: 4.641 kB / 0.9916 GB, free: 7.391 MB / 0.948 GB " [Timeout remaining time 293] (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/jenkins/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: 10.571544569917023]