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.001256/0.001256, allocations: 77.55 kB / 19.76 MB, free: 2.027 MB / 14.72 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.002386/0.002386, allocations: 156.4 kB / 23.01 MB, free: 4.949 MB / 14.72 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 1.345/1.345, allocations: 177.2 MB / 203.4 MB, free: 8.965 MB / 190.1 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.002355/0.002355, allocations: 238.3 kB / 260 MB, free: 440 kB / 238.1 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.8829/0.8829, allocations: 138.5 MB / 455 MB, free: 15.07 MB / 430.1 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: translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002917/0.002917, allocations: 95.84 kB / 0.6473 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3871/0.39, allocations: 95.34 MB / 0.7404 GB, free: 17.43 MB / 0.5919 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002899/0.3929, allocations: 1.892 MB / 0.7423 GB, free: 16.14 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.3943, allocations: 0.8539 MB / 0.7431 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.3944, allocations: 7.688 kB / 0.7431 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0002284/0.3946, allocations: 49.8 kB / 0.7432 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.3948, allocations: 45.09 kB / 0.7432 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003513/0.3951, allocations: 101.9 kB / 0.7433 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.000241/0.3954, allocations: 193.7 kB / 0.7435 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 8.548e-05/0.3954, allocations: 13.77 kB / 0.7435 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.3956, allocations: 87.45 kB / 0.7436 GB, free: 15.31 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00017/0.3958, allocations: 81.09 kB / 0.7437 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.3958, allocations: 10.72 kB / 0.7437 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001583/0.396, allocations: 65.67 kB / 0.7437 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 4.128e-05/0.396, allocations: 22.09 kB / 0.7438 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 8.732e-05/0.3961, allocations: 62.97 kB / 0.7438 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0002877/0.3964, allocations: 192.2 kB / 0.744 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.3964, allocations: 4.688 kB / 0.744 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3964, allocations: 1.375 kB / 0.744 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.3964, allocations: 0 / 0.744 GB, free: 15.14 MB / 0.5919 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.0008313/0.3972, allocations: 444.4 kB / 0.7444 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.3973, allocations: 10.94 kB / 0.7444 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000285/0.3976, allocations: 34.7 kB / 0.7445 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002185/0.3978, allocations: 182.2 kB / 0.7446 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.3978, allocations: 8.5 kB / 0.7447 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.17e-05/0.3978, allocations: 11.77 kB / 0.7447 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.3981, allocations: 125.9 kB / 0.7448 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.3981, allocations: 1.375 kB / 0.7448 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.3981, allocations: 2.078 kB / 0.7448 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3981, allocations: 5.312 kB / 0.7448 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002909/0.3984, allocations: 106.8 kB / 0.7449 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000546/0.399, allocations: 334.9 kB / 0.7452 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003174/0.3993, allocations: 116.4 kB / 0.7453 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.3995, allocations: 69.23 kB / 0.7454 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004796/0.3999, allocations: 65.06 kB / 0.7455 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003164/0.4003, allocations: 128.2 kB / 0.7456 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.4003, allocations: 1.344 kB / 0.7456 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of matching and sorting (n=16): time 0.0006092/0.4009, allocations: 235.1 kB / 0.7458 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.79e-05/0.4009, allocations: 58.94 kB / 0.7459 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.401, allocations: 182.4 kB / 0.746 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.401, allocations: 27.08 kB / 0.7461 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 4.805e-05/0.4011, allocations: 108.9 kB / 0.7462 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.951e-05/0.4011, allocations: 59.91 kB / 0.7462 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.227e-05/0.4012, allocations: 42.42 kB / 0.7463 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.84e-05/0.4012, allocations: 332.1 kB / 0.7466 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.4014, allocations: 103.1 kB / 0.7467 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.4016, allocations: 116.4 kB / 0.7468 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.547/2.949, allocations: 378.8 MB / 1.117 GB, free: 135.4 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/2.949, allocations: 0 / 1.117 GB, free: 135.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004696/2.949, allocations: 284.2 kB / 1.117 GB, free: 135.2 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/2.949, allocations: 37.69 kB / 1.117 GB, free: 135.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/2.949, allocations: 3.625 kB / 1.117 GB, free: 135.1 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/2.949, allocations: 0 / 1.117 GB, free: 135.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/2.95, allocations: 49.92 kB / 1.117 GB, free: 135.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/2.95, allocations: 0 / 1.117 GB, free: 135.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/2.95, allocations: 25.17 kB / 1.117 GB, free: 135.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/2.95, allocations: 8.062 kB / 1.117 GB, free: 135.1 MB / 0.8106 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.0001622/2.95, allocations: 155.9 kB / 1.117 GB, free: 134.9 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.925e-05/2.95, allocations: 16.84 kB / 1.117 GB, free: 134.9 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004928/2.951, allocations: 246.2 kB / 1.117 GB, free: 134.7 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/2.951, allocations: 4 kB / 1.117 GB, free: 134.7 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/2.951, allocations: 0 / 1.117 GB, free: 134.7 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/2.951, allocations: 0 / 1.117 GB, free: 134.7 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/2.951, allocations: 179.8 kB / 1.118 GB, free: 134.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/2.951, allocations: 0 / 1.118 GB, free: 134.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000207/2.951, allocations: 39.97 kB / 1.118 GB, free: 134.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/2.951, allocations: 0 / 1.118 GB, free: 134.5 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/2.951, allocations: 11.94 kB / 1.118 GB, free: 134.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/2.951, allocations: 4 kB / 1.118 GB, free: 134.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/2.951, allocations: 7.969 kB / 1.118 GB, free: 134.4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000529/2.951, allocations: 310.3 kB / 1.118 GB, free: 134.1 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.536e-05/2.952, allocations: 33.03 kB / 1.118 GB, free: 134.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/2.952, allocations: 8 kB / 1.118 GB, free: 134.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/2.952, allocations: 11.98 kB / 1.118 GB, free: 134.1 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.925e-05/2.952, allocations: 15.97 kB / 1.118 GB, free: 134.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/2.952, allocations: 16.86 kB / 1.118 GB, free: 134.1 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.395e-05/2.952, allocations: 130.9 kB / 1.118 GB, free: 133.9 MB / 0.8106 GB Notification: Performance of sort global known variables: time 8e-08/2.952, allocations: 3.938 kB / 1.118 GB, free: 133.9 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002612/2.952, allocations: 54.33 kB / 1.118 GB, free: 133.9 MB / 0.8106 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.0001184/2.952, allocations: 121.2 kB / 1.118 GB, free: 133.8 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003875/2.953, allocations: 244.9 kB / 1.119 GB, free: 133.5 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/2.953, allocations: 0 / 1.119 GB, free: 133.5 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001641/2.953, allocations: 84.02 kB / 1.119 GB, free: 133.4 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/2.953, allocations: 37.11 kB / 1.119 GB, free: 133.4 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006687/2.954, allocations: 0.5266 MB / 1.119 GB, free: 132.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.216e-05/2.954, allocations: 116.2 kB / 1.119 GB, free: 132.7 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001021/2.954, allocations: 33.61 kB / 1.119 GB, free: 132.7 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.786e-05/2.954, allocations: 24.5 kB / 1.119 GB, free: 132.7 MB / 0.8106 GB Notification: Performance of SimCode: time 3.2e-07/2.954, allocations: 0 / 1.119 GB, free: 132.7 MB / 0.8106 GB Notification: Performance of Templates: time 0.005033/2.959, allocations: 2.61 MB / 1.122 GB, free: 130.1 MB / 0.8106 GB " [Timeout remaining time 657] make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile [Timeout 660] (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 & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.170608283020556] Failed to read output from testmodel.py, exit status != 0: 2.966129814973101 2.973656066 2.575275157 Calling exit ...