Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.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.0008334/0.0008334, 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.0009925/0.0009925, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.8527/0.8527, allocations: 177.2 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001406/0.001406, allocations: 244 kB / 259.4 MB, free: 13.02 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6604/0.6604, allocations: 138.4 MB / 454.3 MB, free: 30.04 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.425e-06/2.425e-06, allocations: 4 kB / 0.6462 GB, free: 1.938 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.964e-05/2.206e-05, allocations: 6.219 kB / 0.6463 GB, free: 1.93 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002189/0.002211, allocations: 1.895 MB / 0.6481 GB, free: 16 kB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2392/0.2414, allocations: 0.8481 MB / 0.6489 GB, free: 55.31 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.467e-05/0.2415, allocations: 8 kB / 0.6489 GB, free: 55.31 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001793/0.2417, allocations: 48.16 kB / 0.649 GB, free: 55.29 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 8.272e-05/0.2418, allocations: 53.69 kB / 0.649 GB, free: 55.28 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002541/0.242, allocations: 99.16 kB / 0.6491 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001697/0.2422, allocations: 197 kB / 0.6493 GB, free: 55.22 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 9.345e-05/0.2423, allocations: 17.72 kB / 0.6493 GB, free: 55.22 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.2424, allocations: 114.3 kB / 0.6494 GB, free: 55.21 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 9.384e-05/0.2425, allocations: 66.84 kB / 0.6495 GB, free: 55.2 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.386e-05/0.2426, allocations: 11.03 kB / 0.6495 GB, free: 55.2 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002548/0.2428, allocations: 68.8 kB / 0.6496 GB, free: 55.2 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 2.944e-05/0.2428, allocations: 24.98 kB / 0.6496 GB, free: 55.19 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 5.577e-05/0.2429, allocations: 48.25 kB / 0.6497 GB, free: 55.18 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.000231/0.2431, allocations: 208 kB / 0.6499 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.2431, allocations: 1.953 kB / 0.6499 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.302e-06/0.2431, allocations: 0 / 0.6499 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.2431, allocations: 1.438 kB / 0.6499 GB, free: 55.16 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005568/0.2437, allocations: 442.3 kB / 0.6503 GB, free: 54.81 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2437, allocations: 12.05 kB / 0.6503 GB, free: 54.81 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.611e-05/0.2438, allocations: 39.09 kB / 0.6503 GB, free: 54.77 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.2439, allocations: 36.11 kB / 0.6504 GB, free: 54.76 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001572/0.2441, allocations: 173 kB / 0.6505 GB, free: 54.62 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.2441, allocations: 10.83 kB / 0.6505 GB, free: 54.62 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.2441, allocations: 6.594 kB / 0.6505 GB, free: 54.62 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.2443, allocations: 129.7 kB / 0.6507 GB, free: 54.58 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.2443, allocations: 4.281 kB / 0.6507 GB, free: 54.58 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.2443, allocations: 4.125 kB / 0.6507 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.2443, allocations: 2.625 kB / 0.6507 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.2445, allocations: 98.25 kB / 0.6508 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003928/0.2449, allocations: 364.7 kB / 0.6511 GB, free: 54.34 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001862/0.2451, allocations: 121.6 kB / 0.6512 GB, free: 54.31 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.459e-05/0.2452, allocations: 72.56 kB / 0.6513 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002291/0.2454, allocations: 59.02 kB / 0.6514 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002476/0.2456, allocations: 129.6 kB / 0.6515 GB, free: 54.25 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=16): time 1.884e-06/0.2456, allocations: 0 / 0.6515 GB, free: 54.25 MB / 0.5573 GB Notification: Performance of matching and sorting (n=16): time 0.0003695/0.246, allocations: 243.3 kB / 0.6517 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.34e-05/0.246, allocations: 55.28 kB / 0.6518 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.588e-05/0.2461, allocations: 180.8 kB / 0.6519 GB, free: 54.04 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.301e-05/0.2461, allocations: 32.69 kB / 0.652 GB, free: 54.01 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 4.551e-05/0.2462, allocations: 112.1 kB / 0.6521 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 3.51e-05/0.2462, allocations: 60.33 kB / 0.6521 GB, free: 53.89 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.554e-05/0.2463, allocations: 39.98 kB / 0.6522 GB, free: 53.87 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.381e-05/0.2463, allocations: 332.3 kB / 0.6525 GB, free: 53.55 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.2464, allocations: 98.22 kB / 0.6526 GB, free: 53.52 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.2465, allocations: 118.2 kB / 0.6527 GB, free: 53.46 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.241/1.487, allocations: 378.8 MB / 1.023 GB, free: 209.5 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/1.487, allocations: 0 / 1.023 GB, free: 209.5 MB / 0.7605 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000352/1.487, allocations: 278.9 kB / 1.023 GB, free: 209.2 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/1.487, allocations: 30.33 kB / 1.023 GB, free: 209.2 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/1.487, allocations: 4 kB / 1.023 GB, free: 209.2 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/1.487, allocations: 8.047 kB / 1.023 GB, free: 209.2 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/1.488, allocations: 45.38 kB / 1.023 GB, free: 209.2 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/1.488, allocations: 0 / 1.023 GB, free: 209.2 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/1.488, allocations: 26.39 kB / 1.023 GB, free: 209.1 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/1.488, allocations: 5.625 kB / 1.023 GB, free: 209.1 MB / 0.7605 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_charged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy charged to the battery\" type: Real battery.E_discharged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy taken from the battery\" type: Real battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = \"J\" fixed = true ) \"Available charge of the battery\" type: Real battery.EBou:VARIABLE(start = 0.685 * battery.SOC_start * battery.E_nominal unit = \"J\" fixed = true ) \"Bound charge of the battery\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.gain.count,$PRE.gain.T_start,gain.count,gain.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001886/1.488, allocations: 155.4 kB / 1.023 GB, free: 209 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.438e-05/1.488, allocations: 15.91 kB / 1.023 GB, free: 209 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003708/1.488, allocations: 243.7 kB / 1.023 GB, free: 208.8 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/1.488, allocations: 4 kB / 1.023 GB, free: 208.8 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/1.488, allocations: 2.25 kB / 1.023 GB, free: 208.8 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/1.488, allocations: 0 / 1.023 GB, free: 208.8 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001504/1.489, allocations: 206.4 kB / 1.024 GB, free: 208.6 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/1.489, allocations: 4 kB / 1.024 GB, free: 208.6 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/1.489, allocations: 43.94 kB / 1.024 GB, free: 208.6 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/1.489, allocations: 0 / 1.024 GB, free: 208.6 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/1.489, allocations: 3.562 kB / 1.024 GB, free: 208.6 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/1.489, allocations: 4 kB / 1.024 GB, free: 208.6 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.489, allocations: 0.6562 kB / 1.024 GB, free: 208.6 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003751/1.489, allocations: 317.8 kB / 1.024 GB, free: 208.3 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 5.791e-05/1.489, allocations: 30.41 kB / 1.024 GB, free: 208.3 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/1.489, allocations: 11.92 kB / 1.024 GB, free: 208.3 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.568e-05/1.489, allocations: 11.8 kB / 1.024 GB, free: 208.3 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.221e-05/1.489, allocations: 19.92 kB / 1.024 GB, free: 208.3 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/1.489, allocations: 8.625 kB / 1.024 GB, free: 208.3 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 5.982e-05/1.489, allocations: 132.4 kB / 1.024 GB, free: 208.1 MB / 0.7605 GB Notification: Performance of sort global known variables: time 5.1e-08/1.489, allocations: 4 kB / 1.024 GB, free: 208.1 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0002074/1.489, allocations: 49.38 kB / 1.024 GB, free: 208.1 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged) * Number of discrete variables: 3 ($whenCondition1,gain.T_start,gain.count) * Number of discrete states: 1 (gain.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * 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.0005211/1.49, allocations: 0.8764 MB / 1.025 GB, free: 207.3 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0002724/1.49, allocations: 250.1 kB / 1.025 GB, free: 207.1 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/1.49, allocations: 0 / 1.025 GB, free: 207.1 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0001025/1.49, allocations: 80.2 kB / 1.025 GB, free: 207 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/1.491, allocations: 33.3 kB / 1.025 GB, free: 207 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/1.492, allocations: 2.366 MB / 1.028 GB, free: 204.8 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.611e-05/1.492, allocations: 108.2 kB / 1.028 GB, free: 204.7 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 9.104e-05/1.492, allocations: 36.86 kB / 1.028 GB, free: 204.6 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.192e-05/1.493, allocations: 60.47 kB / 1.028 GB, free: 204.6 MB / 0.7605 GB Notification: Performance of SimCode: time 1.082e-06/1.493, allocations: 0 / 1.028 GB, free: 204.6 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01649/1.509, allocations: 5.536 MB / 1.033 GB, free: 199.3 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.586/8.095, allocations: 64 / 1.033 GB, free: 199.3 MB / 0.7605 GB " [Timeout remaining time 652] (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple.fmu > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.71373053919524] Failed to read output from testmodel.py, exit status != 0: 8.173201344907284 8.177710435 7.933199842 Calling exit ...