Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001829/0.001829, allocations: 112 kB / 17.6 MB, free: 4.699 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.002183/0.002183, allocations: 186 kB / 20.78 MB, free: 1.539 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.409/1.409, allocations: 225.6 MB / 249.4 MB, free: 3.141 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.739/2.739, allocations: 476.7 MB / 0.7629 GB, free: 15.09 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 67.89 kB / 1.107 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.946/0.9479, allocations: 168.7 MB / 1.272 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003033/0.9509, allocations: 1.596 MB / 1.273 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0007848/0.9517, allocations: 455.5 kB / 1.274 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.106e-05/0.9517, allocations: 0.8125 kB / 1.274 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.797e-05/0.9518, allocations: 4.641 kB / 1.274 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.804e-05/0.9518, allocations: 14.98 kB / 1.274 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002329/0.9521, allocations: 25.12 kB / 1.274 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.9522, allocations: 73.78 kB / 1.274 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.9523, allocations: 17.75 kB / 1.274 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.9525, allocations: 37.39 kB / 1.274 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.323e-05/0.9525, allocations: 28.45 kB / 1.274 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.9526, allocations: 6.094 kB / 1.274 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.991e-05/0.9526, allocations: 6.469 kB / 1.274 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.926e-05/0.9526, allocations: 18.61 kB / 1.274 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.75e-05/0.9527, allocations: 28.05 kB / 1.274 GB, free: 6.152 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001548/0.9528, allocations: 67.27 kB / 1.274 GB, free: 6.125 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.9528, allocations: 0 / 1.274 GB, free: 6.125 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.677e-06/0.9528, allocations: 1.734 kB / 1.274 GB, free: 6.125 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.363e-05/0.9529, allocations: 4 kB / 1.274 GB, free: 6.121 MB / 0.9981 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.0006105/0.9535, allocations: 372.4 kB / 1.274 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.9535, allocations: 9.531 kB / 1.274 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.103e-05/0.9535, allocations: 34.95 kB / 1.274 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.496e-05/0.9536, allocations: 8.859 kB / 1.274 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.757e-05/0.9537, allocations: 177 kB / 1.274 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.9537, allocations: 8.406 kB / 1.274 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.879e-05/0.9537, allocations: 7.672 kB / 1.274 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/0.9539, allocations: 91.38 kB / 1.275 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.9539, allocations: 0 / 1.275 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.954, allocations: 1 kB / 1.275 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.954, allocations: 1.062 kB / 1.275 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.9541, allocations: 47.3 kB / 1.275 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004991/0.9546, allocations: 312 kB / 1.275 GB, free: 5.133 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002569/0.9549, allocations: 88.64 kB / 1.275 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.733e-05/0.9549, allocations: 35.78 kB / 1.275 GB, free: 5.066 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.955, allocations: 1.125 kB / 1.275 GB, free: 5.066 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002697/0.9552, allocations: 122.1 kB / 1.275 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 1.442e-06/0.9552, allocations: 0 / 1.275 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0003953/0.9556, allocations: 171.9 kB / 1.275 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.9557, allocations: 53.83 kB / 1.275 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.742e-05/0.9557, allocations: 112.1 kB / 1.275 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.9557, allocations: 26.52 kB / 1.275 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.79e-05/0.9558, allocations: 89.22 kB / 1.276 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.916e-05/0.9558, allocations: 38.52 kB / 1.276 GB, free: 4.598 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.53e-05/0.9558, allocations: 27.52 kB / 1.276 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.229e-05/0.9559, allocations: 323.6 kB / 1.276 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.997e-05/0.956, allocations: 36.09 kB / 1.276 GB, free: 4.238 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.443e-05/0.9561, allocations: 49.36 kB / 1.276 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001433/0.9562, allocations: 60.77 kB / 1.276 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.9562, allocations: 4.781 kB / 1.276 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002225/0.9564, allocations: 117.8 kB / 1.276 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.9564, allocations: 7.969 kB / 1.276 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.9564, allocations: 2.062 kB / 1.276 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.9565, allocations: 1.141 kB / 1.276 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.405e-05/0.9566, allocations: 19.41 kB / 1.276 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.774e-06/0.9566, allocations: 2.625 kB / 1.276 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.101e-05/0.9566, allocations: 7.141 kB / 1.276 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.9566, allocations: 3.156 kB / 1.276 GB, free: 4.102 MB / 0.9981 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.848e-05/0.9567, allocations: 126.9 kB / 1.276 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.9568, allocations: 10.03 kB / 1.276 GB, free: 3.969 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.147e-05/0.9568, allocations: 9.188 kB / 1.276 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.9568, allocations: 3.609 kB / 1.276 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.9568, allocations: 0 / 1.276 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.9568, allocations: 0.875 kB / 1.276 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/0.9569, allocations: 198.7 kB / 1.277 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.9569, allocations: 0 / 1.277 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.871e-05/0.957, allocations: 14.22 kB / 1.277 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.957, allocations: 0.5938 kB / 1.277 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.9571, allocations: 7.375 kB / 1.277 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.9571, allocations: 2.734 kB / 1.277 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.9571, allocations: 0 / 1.277 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004164/0.9575, allocations: 220.1 kB / 1.277 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.826e-05/0.9575, allocations: 87.72 kB / 1.277 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.399e-05/0.9575, allocations: 4.625 kB / 1.277 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.552e-05/0.9576, allocations: 15.16 kB / 1.277 GB, free: 3.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.623e-05/0.9577, allocations: 10.28 kB / 1.277 GB, free: 3.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.9577, allocations: 9.516 kB / 1.277 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.947e-05/0.9577, allocations: 84.28 kB / 1.277 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.9577, allocations: 0 / 1.277 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002154/0.958, allocations: 19.38 kB / 1.277 GB, free: 3.418 MB / 0.9981 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.0006344/0.9586, allocations: 0.7657 MB / 1.278 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002514/0.9588, allocations: 83.7 kB / 1.278 GB, free: 2.734 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.9588, allocations: 0 / 1.278 GB, free: 2.734 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.959, allocations: 48.3 kB / 1.278 GB, free: 2.723 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002195/0.9592, allocations: 25.03 kB / 1.278 GB, free: 2.707 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.9607, allocations: 1.509 MB / 1.279 GB, free: 1.406 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.9611, allocations: 0.6898 MB / 1.28 GB, free: 16.71 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 5.602e-05/0.9612, allocations: 6.344 kB / 1.28 GB, free: 16.71 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.134e-05/0.9612, allocations: 23.02 kB / 1.28 GB, free: 16.7 MB / 1.014 GB Notification: Performance of SimCode: time 6.62e-07/0.9612, allocations: 0.875 kB / 1.28 GB, free: 16.7 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02685/0.9881, allocations: 2.27 MB / 1.282 GB, free: 16.27 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.626/9.615, allocations: 2.5 kB / 1.282 GB, free: 16.27 MB / 1.014 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 15.520152118988335] Failed to read output from testmodel.py, exit status != 0: 9.685358249000274 9.709137544 8.751634019 Calling exit ...