Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_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.0008862/0.0008862, allocations: 104.3 kB / 19.72 MB, free: 424 kB / 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.0009869/0.0009869, allocations: 210.8 kB / 23.02 MB, free: 2.973 MB / 13.93 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.9438/0.9438, allocations: 230.6 MB / 256.8 MB, free: 9.582 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.89/1.89, allocations: 0.5046 GB / 0.8104 GB, free: 2.785 MB / 0.6511 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.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_13_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_13_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.0009989/0.0009989, allocations: 67.89 kB / 1.177 GB, free: 11.98 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6677/0.6687, allocations: 180 MB / 1.352 GB, free: 1.688 MB / 1.026 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00234/0.6711, allocations: 1.593 MB / 1.354 GB, free: 92 kB / 1.026 GB Notification: Performance of NFInst.instExpressions: time 0.0007158/0.6718, allocations: 478.9 kB / 1.354 GB, free: 15.62 MB / 1.042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.578e-05/0.6718, allocations: 0 / 1.354 GB, free: 15.62 MB / 1.042 GB Notification: Performance of NFTyping.typeComponents: time 3.15e-05/0.6719, allocations: 7.938 kB / 1.354 GB, free: 15.61 MB / 1.042 GB Notification: Performance of NFTyping.typeBindings: time 6.422e-05/0.6719, allocations: 11.86 kB / 1.354 GB, free: 15.6 MB / 1.042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.6722, allocations: 43.89 kB / 1.355 GB, free: 15.55 MB / 1.042 GB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.6723, allocations: 75.77 kB / 1.355 GB, free: 15.48 MB / 1.042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.6724, allocations: 11.91 kB / 1.355 GB, free: 15.47 MB / 1.042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.6725, allocations: 39.84 kB / 1.355 GB, free: 15.43 MB / 1.042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.827e-05/0.6726, allocations: 27.89 kB / 1.355 GB, free: 15.4 MB / 1.042 GB Notification: Performance of NFPackage.collectConstants: time 1.329e-05/0.6726, allocations: 4 kB / 1.355 GB, free: 15.4 MB / 1.042 GB Notification: Performance of NFFlatten.collectFunctions: time 4.258e-05/0.6726, allocations: 20 kB / 1.355 GB, free: 15.38 MB / 1.042 GB Notification: Performance of NFScalarize.scalarize: time 1.704e-05/0.6727, allocations: 11.94 kB / 1.355 GB, free: 15.37 MB / 1.042 GB Notification: Performance of NFVerifyModel.verify: time 3.713e-05/0.6727, allocations: 23.92 kB / 1.355 GB, free: 15.34 MB / 1.042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.6728, allocations: 73.95 kB / 1.355 GB, free: 15.27 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.6728, allocations: 0 / 1.355 GB, free: 15.27 MB / 1.042 GB Notification: Performance of FrontEnd: time 1.693e-06/0.6728, allocations: 0 / 1.355 GB, free: 15.27 MB / 1.042 GB Notification: Performance of Transformations before backend: time 5.581e-06/0.6728, allocations: 0 / 1.355 GB, free: 15.27 MB / 1.042 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.0005093/0.6733, allocations: 302.1 kB / 1.355 GB, free: 14.95 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.6734, allocations: 8.922 kB / 1.355 GB, free: 14.94 MB / 1.042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.43e-05/0.6734, allocations: 42.73 kB / 1.355 GB, free: 14.89 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.6736, allocations: 8.938 kB / 1.355 GB, free: 14.88 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002266/0.6738, allocations: 138.3 kB / 1.355 GB, free: 14.72 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.6738, allocations: 12.38 kB / 1.355 GB, free: 14.71 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.177e-05/0.6738, allocations: 4.375 kB / 1.355 GB, free: 14.71 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.674, allocations: 89.7 kB / 1.355 GB, free: 14.61 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.674, allocations: 3.984 kB / 1.355 GB, free: 14.61 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.674, allocations: 3.938 kB / 1.355 GB, free: 14.61 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.674, allocations: 4 kB / 1.355 GB, free: 14.6 MB / 1.042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.56e-05/0.6741, allocations: 47.91 kB / 1.355 GB, free: 14.55 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004121/0.6745, allocations: 275.9 kB / 1.356 GB, free: 14.24 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001981/0.6747, allocations: 78.53 kB / 1.356 GB, free: 14.16 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.032e-05/0.6747, allocations: 32.84 kB / 1.356 GB, free: 14.12 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.6748, allocations: 4.094 kB / 1.356 GB, free: 14.12 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001706/0.6749, allocations: 119.3 kB / 1.356 GB, free: 13.99 MB / 1.042 GB Notification: Performance of pre-optimization done (n=11): time 1.903e-06/0.6749, allocations: 0 / 1.356 GB, free: 13.99 MB / 1.042 GB Notification: Performance of matching and sorting (n=11): time 0.0002797/0.6752, allocations: 173.5 kB / 1.356 GB, free: 13.81 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.6753, allocations: 51.41 kB / 1.356 GB, free: 13.75 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.306e-05/0.6753, allocations: 113.8 kB / 1.356 GB, free: 13.63 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.6753, allocations: 33.7 kB / 1.356 GB, free: 13.59 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 3.795e-05/0.6754, allocations: 92.31 kB / 1.356 GB, free: 13.49 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 2.872e-05/0.6754, allocations: 27.94 kB / 1.356 GB, free: 13.46 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.6754, allocations: 33.7 kB / 1.356 GB, free: 13.43 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 8.054e-05/0.6755, allocations: 322.8 kB / 1.357 GB, free: 13.1 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.217e-05/0.6756, allocations: 31.97 kB / 1.357 GB, free: 13.07 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.573e-05/0.6756, allocations: 46.45 kB / 1.357 GB, free: 13.02 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.494e-05/0.6757, allocations: 65.69 kB / 1.357 GB, free: 12.95 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.6757, allocations: 0 / 1.357 GB, free: 12.95 MB / 1.042 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001293/0.6758, allocations: 121.9 kB / 1.357 GB, free: 12.82 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.6758, allocations: 4 kB / 1.357 GB, free: 12.82 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.6759, allocations: 4 kB / 1.357 GB, free: 12.82 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.6759, allocations: 4 kB / 1.357 GB, free: 12.81 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.833e-05/0.6759, allocations: 15.92 kB / 1.357 GB, free: 12.8 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.6759, allocations: 0 / 1.357 GB, free: 12.8 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.896e-05/0.676, allocations: 15.95 kB / 1.357 GB, free: 12.78 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-06/0.676, allocations: 384 / 1.357 GB, free: 12.78 MB / 1.042 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 7.157e-05/0.676, allocations: 130.3 kB / 1.357 GB, free: 12.64 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.719e-06/0.676, allocations: 7.953 kB / 1.357 GB, free: 12.64 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.281e-05/0.6761, allocations: 8.375 kB / 1.357 GB, free: 12.62 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.6761, allocations: 7.938 kB / 1.357 GB, free: 12.62 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.6761, allocations: 4 kB / 1.357 GB, free: 12.61 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.6761, allocations: 0 / 1.357 GB, free: 12.61 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001103/0.6762, allocations: 160.6 kB / 1.357 GB, free: 12.41 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.6762, allocations: 0 / 1.357 GB, free: 12.41 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-05/0.6762, allocations: 11.94 kB / 1.357 GB, free: 12.4 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.6762, allocations: 0 / 1.357 GB, free: 12.4 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.6763, allocations: 11.98 kB / 1.357 GB, free: 12.39 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.6763, allocations: 0 / 1.357 GB, free: 12.39 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.6763, allocations: 4 kB / 1.357 GB, free: 12.39 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002672/0.6765, allocations: 220.9 kB / 1.358 GB, free: 12.15 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 8.566e-06/0.6765, allocations: 3.953 kB / 1.358 GB, free: 12.15 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.6765, allocations: 11.98 kB / 1.358 GB, free: 12.14 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.028e-05/0.6766, allocations: 4 kB / 1.358 GB, free: 12.13 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.878e-05/0.6766, allocations: 15.97 kB / 1.358 GB, free: 12.12 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.6766, allocations: 7.984 kB / 1.358 GB, free: 12.11 MB / 1.042 GB Notification: Performance of sorting global known variables: time 3.446e-05/0.6767, allocations: 87.28 kB / 1.358 GB, free: 12.02 MB / 1.042 GB Notification: Performance of sort global known variables: time 5e-08/0.6767, allocations: 0 / 1.358 GB, free: 12.02 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0001397/0.6768, allocations: 20 kB / 1.358 GB, free: 12 MB / 1.042 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.0005193/0.6773, allocations: 0.7656 MB / 1.358 GB, free: 11.21 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0001549/0.6775, allocations: 83.91 kB / 1.359 GB, free: 11.13 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.6775, allocations: 0 / 1.359 GB, free: 11.13 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 6.664e-05/0.6776, allocations: 51.84 kB / 1.359 GB, free: 11.08 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001547/0.6777, allocations: 15.98 kB / 1.359 GB, free: 11.06 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.6788, allocations: 1.505 MB / 1.36 GB, free: 9.473 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.94e-05/0.6789, allocations: 80.5 kB / 1.36 GB, free: 9.375 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 3.59e-05/0.6789, allocations: 8.672 kB / 1.36 GB, free: 9.367 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.829e-05/0.6789, allocations: 23.42 kB / 1.36 GB, free: 9.344 MB / 1.042 GB Notification: Performance of SimCode: time 6.71e-07/0.6789, allocations: 3.938 kB / 1.36 GB, free: 9.34 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08241/0.7614, allocations: 2.878 MB / 1.363 GB, free: 6.613 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.347/8.108, allocations: 8.156 kB / 1.363 GB, free: 6.609 MB / 1.042 GB " [Timeout remaining time 292] (rm -f Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu) > Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_fmpy.pipe ; mkfifo Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_fmpy_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 ../Buildings_13_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu) > Buildings_13_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.79624503199011]