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.001488/0.001488, allocations: 78.34 kB / 19.01 MB, free: 2.859 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.001512/0.001512, allocations: 155.8 kB / 22.25 MB, free: 5.109 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.4/1.4, allocations: 177.2 MB / 202.6 MB, free: 9.289 MB / 190.1 MB " [Timeout remaining time 178] 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.002514/0.002514, allocations: 231 kB / 259.2 MB, free: 0.5977 MB / 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 1.072/1.072, allocations: 138.5 MB / 454.2 MB, free: 2.094 MB / 366.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.003163/0.003163, allocations: 107.8 kB / 0.6466 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4134/0.4165, allocations: 95.33 MB / 0.7397 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003754/0.4203, allocations: 1.896 MB / 0.7415 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001757/0.4221, allocations: 0.8505 MB / 0.7423 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.4222, allocations: 7.938 kB / 0.7424 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002535/0.4225, allocations: 51.58 kB / 0.7424 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.4226, allocations: 55.55 kB / 0.7425 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000365/0.423, allocations: 87.78 kB / 0.7425 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002972/0.4233, allocations: 191.3 kB / 0.7427 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.545e-05/0.4234, allocations: 13.8 kB / 0.7427 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002588/0.4236, allocations: 127.6 kB / 0.7429 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.4238, allocations: 75.61 kB / 0.7429 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.4238, allocations: 11.98 kB / 0.7429 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001504/0.424, allocations: 63.95 kB / 0.743 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.006e-05/0.424, allocations: 31.91 kB / 0.743 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.76e-05/0.4241, allocations: 59.7 kB / 0.7431 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000322/0.4244, allocations: 192.3 kB / 0.7433 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.4244, allocations: 3.938 kB / 0.7433 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.303e-06/0.4244, allocations: 0 / 0.7433 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.4245, allocations: 7.938 kB / 0.7433 GB, free: 11.58 MB / 0.5762 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.001044/0.4255, allocations: 439 kB / 0.7437 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.4255, allocations: 13.33 kB / 0.7437 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003069/0.4258, allocations: 36.83 kB / 0.7438 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003028/0.4261, allocations: 186.1 kB / 0.7439 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.4262, allocations: 8.375 kB / 0.7439 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.789e-05/0.4262, allocations: 12.36 kB / 0.7439 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003349/0.4265, allocations: 129.8 kB / 0.7441 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.4265, allocations: 4 kB / 0.7441 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/0.4266, allocations: 4 kB / 0.7441 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.4266, allocations: 0 / 0.7441 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003413/0.4269, allocations: 102.5 kB / 0.7442 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006913/0.4276, allocations: 336.3 kB / 0.7445 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003774/0.428, allocations: 126.4 kB / 0.7446 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.4282, allocations: 64.83 kB / 0.7447 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005598/0.4287, allocations: 63.91 kB / 0.7447 GB, free: 9.98 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003781/0.4291, allocations: 127.3 kB / 0.7449 GB, free: 9.844 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.4291, allocations: 0 / 0.7449 GB, free: 9.844 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.0006836/0.4298, allocations: 233.8 kB / 0.7451 GB, free: 9.609 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.4298, allocations: 51.41 kB / 0.7451 GB, free: 9.547 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.43, allocations: 183.5 kB / 0.7453 GB, free: 9.355 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.4301, allocations: 33.7 kB / 0.7453 GB, free: 9.316 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.956e-05/0.4302, allocations: 100.1 kB / 0.7454 GB, free: 9.215 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.214e-05/0.4302, allocations: 71.47 kB / 0.7455 GB, free: 9.145 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.675e-05/0.4303, allocations: 33.7 kB / 0.7455 GB, free: 9.105 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001671/0.4305, allocations: 330.8 kB / 0.7459 GB, free: 8.773 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.4307, allocations: 102.5 kB / 0.746 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002395/0.4309, allocations: 117.7 kB / 0.7461 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.433/2.864, allocations: 378.8 MB / 1.116 GB, free: 33.43 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/2.864, allocations: 0 / 1.116 GB, free: 33.43 MB / 0.7637 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004746/2.864, allocations: 278 kB / 1.116 GB, free: 33.2 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/2.864, allocations: 37.69 kB / 1.116 GB, free: 33.16 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/2.864, allocations: 2.844 kB / 1.116 GB, free: 33.16 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/2.864, allocations: 4.062 kB / 1.116 GB, free: 33.16 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/2.865, allocations: 47.84 kB / 1.116 GB, free: 33.11 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/2.865, allocations: 4 kB / 1.116 GB, free: 33.11 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/2.865, allocations: 20.12 kB / 1.116 GB, free: 33.1 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/2.865, allocations: 7.875 kB / 1.116 GB, free: 33.09 MB / 0.7637 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.000203/2.865, allocations: 164 kB / 1.116 GB, free: 32.95 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.759e-05/2.865, allocations: 14.36 kB / 1.117 GB, free: 32.94 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005088/2.866, allocations: 242.6 kB / 1.117 GB, free: 32.75 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/2.866, allocations: 4 kB / 1.117 GB, free: 32.75 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/2.866, allocations: 0 / 1.117 GB, free: 32.75 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/2.866, allocations: 0.875 kB / 1.117 GB, free: 32.75 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001389/2.866, allocations: 176.6 kB / 1.117 GB, free: 32.55 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/2.866, allocations: 4 kB / 1.117 GB, free: 32.55 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002221/2.866, allocations: 39.91 kB / 1.117 GB, free: 32.51 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/2.866, allocations: 0 / 1.117 GB, free: 32.51 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/2.866, allocations: 11.98 kB / 1.117 GB, free: 32.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/2.866, allocations: 1.875 kB / 1.117 GB, free: 32.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/2.866, allocations: 0 / 1.117 GB, free: 32.5 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005445/2.866, allocations: 319.4 kB / 1.117 GB, free: 32.18 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 6.745e-05/2.867, allocations: 31.02 kB / 1.117 GB, free: 32.16 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.017e-05/2.867, allocations: 8 kB / 1.117 GB, free: 32.15 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/2.867, allocations: 11.98 kB / 1.117 GB, free: 32.14 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.91e-05/2.867, allocations: 15.97 kB / 1.117 GB, free: 32.12 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/2.867, allocations: 11.27 kB / 1.117 GB, free: 32.12 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 6.632e-05/2.867, allocations: 130.9 kB / 1.117 GB, free: 31.99 MB / 0.7637 GB Notification: Performance of sort global known variables: time 8e-08/2.867, allocations: 3.938 kB / 1.117 GB, free: 31.98 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0002558/2.867, allocations: 59.44 kB / 1.118 GB, free: 31.93 MB / 0.7637 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.0001215/2.867, allocations: 118.2 kB / 1.118 GB, free: 31.81 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0004154/2.868, allocations: 253.6 kB / 1.118 GB, free: 31.55 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/2.868, allocations: 0 / 1.118 GB, free: 31.55 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001699/2.868, allocations: 79.89 kB / 1.118 GB, free: 31.47 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/2.868, allocations: 34.53 kB / 1.118 GB, free: 31.45 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007395/2.869, allocations: 0.5298 MB / 1.119 GB, free: 30.91 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.591e-05/2.869, allocations: 112.2 kB / 1.119 GB, free: 30.78 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001079/2.869, allocations: 33.61 kB / 1.119 GB, free: 30.75 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.117e-05/2.869, allocations: 24.5 kB / 1.119 GB, free: 30.72 MB / 0.7637 GB Notification: Performance of SimCode: time 3.01e-07/2.869, allocations: 0 / 1.119 GB, free: 30.72 MB / 0.7637 GB Notification: Performance of Templates: time 0.005247/2.874, allocations: 2.614 MB / 1.121 GB, free: 28.18 MB / 0.7637 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.257484622299671] Failed to read output from testmodel.py, exit status != 0: 2.8819114919751883 2.890302155 2.4636778 Calling exit ...