Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Battery_OB_Battery.Examples.ElectricBattery_small.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.0007796/0.0007796, allocations: 72.27 kB / 9.877 MB, free: 0.8203 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009623/0.001742, allocations: 451.7 kB / 10.32 MB, free: 392 kB / 10.45 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.0007415/0.0007415, allocations: 154.6 kB / 11.2 MB, free: 2.98 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009358/0.001677, allocations: 475.5 kB / 11.66 MB, free: 2.512 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.3776/0.3776, allocations: 179.9 MB / 192.3 MB, free: 14.69 MB / 202.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07695/0.4546, allocations: 53.66 MB / 246 MB, free: 8.848 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Battery main/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Battery main/Examples/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: ElectricBattery Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Battery main/package.mo): time 0.00218/0.00218, allocations: 0.5721 MB / 247.3 MB, free: 7.566 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001241/0.003421, allocations: 0.6078 MB / 247.9 MB, free: 6.973 MB / 250.7 MB " [Timeout remaining time 180] Using package Battery with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Battery main/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(Battery.Examples.ElectricBattery_small,tolerance=0.0001,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Battery_OB_Battery.Examples.ElectricBattery_small") translateModel(Battery.Examples.ElectricBattery_small,tolerance=0.0001,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Battery_OB_Battery.Examples.ElectricBattery_small") [Timeout 400] "Notification: Performance of FrontEnd - loaded program: time 9.01e-07/9.01e-07, allocations: 0 / 249.1 MB, free: 5.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.404e-06/8.305e-06, allocations: 2.312 kB / 249.1 MB, free: 5.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Battery.Examples.ElectricBattery_small): time 0.00523/0.005239, allocations: 5.959 MB / 255.1 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.006899, allocations: 1.473 MB / 256.6 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.007076, allocations: 23.88 kB / 256.6 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001966/0.007272, allocations: 134.8 kB / 256.7 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002927/0.007565, allocations: 222.1 kB / 256.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.007893, allocations: 235.6 kB / 257.2 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002681/0.01057, allocations: 3.543 MB / 260.7 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009813/0.01155, allocations: 0.7999 MB / 261.5 MB, free: 9.211 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00159/0.01314, allocations: 1.927 MB / 263.4 MB, free: 7.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001356/0.0145, allocations: 1.353 MB / 264.8 MB, free: 5.914 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002838/0.01478, allocations: 264 kB / 265 MB, free: 5.656 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003208/0.0151, allocations: 268 kB / 265.3 MB, free: 5.395 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003434/0.01545, allocations: 402.8 kB / 265.7 MB, free: 5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006965/0.01614, allocations: 0.6668 MB / 266.4 MB, free: 4.332 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001995/0.01814, allocations: 2.198 MB / 268.6 MB, free: 2.129 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.024e-05/0.01815, allocations: 0 / 268.6 MB, free: 2.129 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.01815, allocations: 3.938 kB / 268.6 MB, free: 2.125 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.145e-05/0.01817, allocations: 0 / 268.6 MB, free: 2.125 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 0.003055/0.02123, allocations: 2.353 MB / 270.9 MB, free: 15.71 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.293e-05/0.02125, allocations: 8.391 kB / 270.9 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003953/0.02164, allocations: 300.7 kB / 271.2 MB, free: 15.41 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009339/0.02258, allocations: 0.6372 MB / 271.8 MB, free: 14.75 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.414e-05/0.02267, allocations: 144.1 kB / 272 MB, free: 14.61 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002475/0.02292, allocations: 196.3 kB / 272.2 MB, free: 14.42 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002067/0.02499, allocations: 2.02 MB / 274.2 MB, free: 12.08 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.677e-05/0.02502, allocations: 16.06 kB / 274.2 MB, free: 12.07 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001567/0.02518, allocations: 84.38 kB / 274.3 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-05/0.02522, allocations: 55.94 kB / 274.4 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.02629, allocations: 0.672 MB / 275 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008473/0.03476, allocations: 10.7 MB / 285.7 MB, free: 152 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08158/0.1163, allocations: 0.768 MB / 286.5 MB, free: 34.07 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004356/0.1168, allocations: 211.2 kB / 286.7 MB, free: 34.06 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.596e-05/0.1168, allocations: 20.25 kB / 286.7 MB, free: 34.06 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.1169, allocations: 48.44 kB / 286.8 MB, free: 34.02 MB / 282.7 MB Notification: Performance of pre-optimization done (n=115): time 2.484e-06/0.1169, allocations: 1.062 kB / 286.8 MB, free: 34.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=115): time 0.003284/0.1201, allocations: 1.427 MB / 288.2 MB, free: 33.83 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.92e-05/0.1202, allocations: 62.28 kB / 288.3 MB, free: 33.77 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.1212, allocations: 1.106 MB / 289.4 MB, free: 33.62 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.86e-05/0.1213, allocations: 46.73 kB / 289.4 MB, free: 33.59 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/0.1216, allocations: 0.9399 MB / 290.3 MB, free: 33.2 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/0.1218, allocations: 457.7 kB / 290.8 MB, free: 32.97 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004631/0.1222, allocations: 420 kB / 291.2 MB, free: 32.93 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 2.062e-05/0.1222, allocations: 301.1 kB / 291.5 MB, free: 32.63 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003516/0.1226, allocations: 210.7 kB / 291.7 MB, free: 32.62 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005907/0.1232, allocations: 1.042 MB / 292.7 MB, free: 31.62 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.1242, allocations: 1.481 MB / 294.2 MB, free: 30.63 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.647e-05/0.1242, allocations: 7.781 kB / 294.2 MB, free: 30.63 MB / 282.7 MB Notification: Performance of matching and sorting (n=290) (initialization): time 0.002312/0.1265, allocations: 1.639 MB / 295.9 MB, free: 30.41 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.1266, allocations: 23.38 kB / 295.9 MB, free: 30.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.352e-05/0.1266, allocations: 28.25 kB / 295.9 MB, free: 30.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001602/0.1282, allocations: 0.5911 MB / 296.5 MB, free: 30.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002129/0.1303, allocations: 0.8316 MB / 297.3 MB, free: 30.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006499/0.1368, allocations: 20.37 MB / 317.7 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009051/0.1377, allocations: 256.6 kB / 318 MB, free: 10.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.1379, allocations: 88.73 kB / 318.1 MB, free: 10.86 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 123 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 252 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 17 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 17 systems {(1,1,100.0%), (1,2,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003419/0.1382, allocations: 265.1 kB / 318.3 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.1384, allocations: 120.6 kB / 318.4 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001448/0.1399, allocations: 1.031 MB / 319.5 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.1399, allocations: 18.61 kB / 319.5 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.1399, allocations: 4.906 kB / 319.5 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.1399, allocations: 3.516 kB / 319.5 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002362/0.1422, allocations: 1.683 MB / 321.2 MB, free: 9.867 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1423, allocations: 2 kB / 321.2 MB, free: 9.867 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001492/0.1437, allocations: 0.5099 MB / 321.7 MB, free: 9.711 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001342/0.1451, allocations: 0.5594 MB / 322.2 MB, free: 9.371 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-05/0.1452, allocations: 27 kB / 322.3 MB, free: 9.355 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009099/0.1543, allocations: 20.29 MB / 342.6 MB, free: 4.699 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.1543, allocations: 4.031 kB / 342.6 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002089/0.1564, allocations: 1.162 MB / 343.7 MB, free: 3.492 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/0.1566, allocations: 158.7 kB / 343.9 MB, free: 3.336 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.1567, allocations: 32 kB / 343.9 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004181/0.1571, allocations: 31.98 kB / 343.9 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/0.1573, allocations: 96.75 kB / 344 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.352e-05/0.1574, allocations: 20 kB / 344.1 MB, free: 3.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005289/0.1579, allocations: 0.5015 MB / 344.6 MB, free: 2.707 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1579, allocations: 0 / 344.6 MB, free: 2.707 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001502/0.1594, allocations: 0.7627 MB / 345.3 MB, free: 1.945 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (battery.electricalModel.SoC,battery.electricalModel.capacitorC1.Q,battery.electricalModel.capacitorC2.Q,battery.discreteElement[1,1,1].T,battery.discreteElement[1,2,1].T,battery.discreteElement[1,3,1].T,battery.discreteElement[1,4,1].T,battery.discreteElement[1,5,1].T,battery.discreteElement[2,1,1].T,battery.discreteElement[2,2,1].T,battery.discreteElement[2,3,1].T,battery.discreteElement[2,4,1].T,battery.discreteElement[2,5,1].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 17 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 17 systems {(1,2,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001734/0.1596, allocations: 135.8 kB / 345.5 MB, free: 1.809 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002784/0.1624, allocations: 2.933 MB / 348.4 MB, free: 14.7 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.297e-05/0.1624, allocations: 27.84 kB / 348.4 MB, free: 14.67 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001813/0.1642, allocations: 2.334 MB / 350.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009572/0.1652, allocations: 347.3 kB / 351.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005251/0.1704, allocations: 3.83 MB / 354.9 MB, free: 7.992 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.1709, allocations: 441.9 kB / 355.3 MB, free: 7.539 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006283/0.1715, allocations: 213.4 kB / 355.6 MB, free: 7.324 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006912/0.1722, allocations: 368 kB / 355.9 MB, free: 6.973 MB / 314.7 MB Notification: Performance of SimCode: time 3.11e-07/0.1722, allocations: 0 / 355.9 MB, free: 6.973 MB / 314.7 MB Notification: Performance of Templates: time 0.03562/0.2078, allocations: 34.59 MB / 390.5 MB, free: 4.879 MB / 346.7 MB " [Timeout remaining time 400] make -j12 -f Battery_OB_Battery.Examples.ElectricBattery_small.makefile [Timeout 400] (rm -f Battery_OB_Battery.Examples.ElectricBattery_small.pipe ; mkfifo Battery_OB_Battery.Examples.ElectricBattery_small.pipe ; head -c 1048576 < Battery_OB_Battery.Examples.ElectricBattery_small.pipe >> ../files/Battery_OB_Battery.Examples.ElectricBattery_small.sim & ./Battery_OB_Battery.Examples.ElectricBattery_small -abortSlowSimulation -alarm=240 -lv LOG_STATS > Battery_OB_Battery.Examples.ElectricBattery_small.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 1.253912702202797]