Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 108.2 kB / 17.54 MB, free: 4.742 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 186.7 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 225.6 MB / 249.3 MB, free: 3.031 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.374/2.374, allocations: 443.5 MB / 0.7304 GB, free: 14.06 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 67.91 kB / 1.059 GB, free: 0.9688 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2658, allocations: 160.7 MB / 1.216 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002645/0.2685, allocations: 1.589 MB / 1.217 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0007242/0.2692, allocations: 463.9 kB / 1.218 GB, free: 13.88 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.884e-05/0.2692, allocations: 0 / 1.218 GB, free: 13.88 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.804e-05/0.2693, allocations: 3.938 kB / 1.218 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.489e-05/0.2693, allocations: 15.86 kB / 1.218 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001698/0.2695, allocations: 27.91 kB / 1.218 GB, free: 13.83 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.712e-05/0.2696, allocations: 63.84 kB / 1.218 GB, free: 13.77 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.962e-05/0.2697, allocations: 23.97 kB / 1.218 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.631e-05/0.2698, allocations: 31.92 kB / 1.218 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.516e-05/0.2699, allocations: 31.84 kB / 1.218 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.671e-05/0.2699, allocations: 4 kB / 1.218 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.618e-05/0.2699, allocations: 8 kB / 1.218 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.435e-05/0.2699, allocations: 19.97 kB / 1.218 GB, free: 13.65 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.159e-05/0.27, allocations: 31.86 kB / 1.218 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.2701, allocations: 63.98 kB / 1.218 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.2701, allocations: 0 / 1.218 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.765e-06/0.2701, allocations: 4 kB / 1.218 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.2701, allocations: 4 kB / 1.218 GB, free: 13.55 MB / 0.9669 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.0005485/0.2706, allocations: 371.2 kB / 1.218 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.2707, allocations: 8.031 kB / 1.218 GB, free: 13.13 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.559e-05/0.2707, allocations: 42.69 kB / 1.218 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.002e-05/0.2707, allocations: 8.891 kB / 1.218 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.2709, allocations: 176.3 kB / 1.218 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.2709, allocations: 384 / 1.218 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.71e-05/0.2709, allocations: 12.38 kB / 1.218 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000176/0.2711, allocations: 85.77 kB / 1.219 GB, free: 12.76 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.2711, allocations: 3.938 kB / 1.219 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.2711, allocations: 7.984 kB / 1.219 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.2711, allocations: 0 / 1.219 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.2712, allocations: 39.97 kB / 1.219 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005454/0.2718, allocations: 320.8 kB / 1.219 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000241/0.272, allocations: 90.5 kB / 1.219 GB, free: 12.25 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.055e-05/0.2721, allocations: 36.84 kB / 1.219 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.2721, allocations: 3.938 kB / 1.219 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002296/0.2723, allocations: 119.4 kB / 1.219 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.453e-06/0.2723, allocations: 4 kB / 1.219 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0003702/0.2727, allocations: 165.6 kB / 1.219 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.2727, allocations: 55.41 kB / 1.219 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.179e-05/0.2728, allocations: 117.7 kB / 1.219 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.2729, allocations: 29.7 kB / 1.219 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.732e-05/0.2729, allocations: 88.38 kB / 1.22 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.328e-05/0.2729, allocations: 35.73 kB / 1.22 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/0.273, allocations: 25.72 kB / 1.22 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.2731, allocations: 326.8 kB / 1.22 GB, free: 11.19 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.742e-05/0.2732, allocations: 27.98 kB / 1.22 GB, free: 11.16 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.343e-05/0.2733, allocations: 45.7 kB / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.2734, allocations: 65.62 kB / 1.22 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2734, allocations: 4 kB / 1.22 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002041/0.2736, allocations: 106.1 kB / 1.22 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.2736, allocations: 11.94 kB / 1.22 GB, free: 10.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2736, allocations: 4 kB / 1.22 GB, free: 10.91 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.2736, allocations: 0 / 1.22 GB, free: 10.91 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.784e-05/0.2737, allocations: 19.92 kB / 1.22 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.2737, allocations: 0 / 1.22 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.729e-05/0.2738, allocations: 11.98 kB / 1.22 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.2738, allocations: 4 kB / 1.22 GB, free: 10.88 MB / 0.9669 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 9.504e-05/0.2739, allocations: 123.5 kB / 1.22 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.733e-05/0.2739, allocations: 7.953 kB / 1.22 GB, free: 10.74 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.809e-05/0.274, allocations: 12.38 kB / 1.22 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.274, allocations: 4 kB / 1.22 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.274, allocations: 0 / 1.22 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.274, allocations: 3.984 kB / 1.22 GB, free: 10.72 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.2741, allocations: 201.5 kB / 1.221 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2741, allocations: 0 / 1.221 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.314e-05/0.2742, allocations: 15.92 kB / 1.221 GB, free: 10.46 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2742, allocations: 4 kB / 1.221 GB, free: 10.46 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.2742, allocations: 4 kB / 1.221 GB, free: 10.45 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2742, allocations: 0 / 1.221 GB, free: 10.45 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2742, allocations: 0 / 1.221 GB, free: 10.45 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003678/0.2746, allocations: 220.9 kB / 1.221 GB, free: 10.22 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.6e-05/0.2746, allocations: 85.09 kB / 1.221 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.2747, allocations: 4 kB / 1.221 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.643e-05/0.2747, allocations: 12.05 kB / 1.221 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.052e-05/0.2748, allocations: 19.92 kB / 1.221 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.2748, allocations: 7.984 kB / 1.221 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.804e-05/0.2748, allocations: 91.52 kB / 1.221 GB, free: 9.984 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.2748, allocations: 0 / 1.221 GB, free: 9.984 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001891/0.275, allocations: 20 kB / 1.221 GB, free: 9.965 MB / 0.9669 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.0006868/0.2757, allocations: 0.7607 MB / 1.222 GB, free: 9.176 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002144/0.2759, allocations: 79.95 kB / 1.222 GB, free: 9.098 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.2759, allocations: 4 kB / 1.222 GB, free: 9.094 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.276, allocations: 47.91 kB / 1.222 GB, free: 9.047 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001881/0.2762, allocations: 18.2 kB / 1.222 GB, free: 9.031 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.2778, allocations: 1.499 MB / 1.223 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.2781, allocations: 0.6962 MB / 1.224 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.008e-05/0.2781, allocations: 8.656 kB / 1.224 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.886e-05/0.2782, allocations: 19.44 kB / 1.224 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of SimCode: time 3.51e-07/0.2782, allocations: 0 / 1.224 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02596/0.3041, allocations: 2.273 MB / 1.226 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.302/7.606, allocations: 2.25 kB / 1.226 GB, free: 4.512 MB / 0.9669 GB " [Timeout remaining time 292] (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv. Warning: Get data of variable soc.Q_flow from file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.888914232004026]