Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=13860,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle") translateModel(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=13860,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 110.7 kB / 16.42 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 187.9 kB / 17.35 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05924/0.05924, allocations: 7.038 MB / 277.6 MB, free: 4.957 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ElectricalEnergyStorage requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 75.25 kB / 386 MB, free: 48.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09776/0.09929, allocations: 48.11 MB / 434.1 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.005388/0.1047, allocations: 4.633 MB / 438.7 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003139/0.1079, allocations: 2.7 MB / 441.4 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003837/0.1083, allocations: 23.94 kB / 441.4 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.1095, allocations: 0.6182 MB / 442 MB, free: 1.402 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003919/0.1099, allocations: 218.1 kB / 442.3 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000589/0.1105, allocations: 435.4 kB / 442.7 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001047/0.1115, allocations: 1.287 MB / 444 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006209/0.1122, allocations: 486.7 kB / 444.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004049/0.1126, allocations: 450.5 kB / 444.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004558/0.1131, allocations: 450 kB / 445.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001574/0.1132, allocations: 135.9 kB / 445.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002209/0.1135, allocations: 156 kB / 445.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002435/0.1137, allocations: 275.1 kB / 445.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004358/0.1141, allocations: 0.5131 MB / 446.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001479/0.1156, allocations: 1.565 MB / 448 MB, free: 11.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1156, allocations: 0 / 448 MB, free: 11.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1157, allocations: 0 / 448 MB, free: 11.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.73e-05/0.1157, allocations: 0 / 448 MB, free: 11.45 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002624/0.1183, allocations: 1.465 MB / 449.4 MB, free: 9.906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.1184, allocations: 8.031 kB / 449.4 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001907/0.1186, allocations: 103.7 kB / 449.5 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009545/0.1195, allocations: 0.6852 MB / 450.2 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.85e-05/0.1196, allocations: 58.38 kB / 450.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.1197, allocations: 80.06 kB / 450.3 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001716/0.1214, allocations: 0.8178 MB / 451.2 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.1215, allocations: 0 / 451.2 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-05/0.1216, allocations: 28 kB / 451.2 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.1216, allocations: 16 kB / 451.2 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.1232, allocations: 0.6414 MB / 451.9 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003828/0.1271, allocations: 2.888 MB / 454.7 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.1287, allocations: 0.5611 MB / 455.3 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006834/0.1294, allocations: 252.5 kB / 455.5 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.924e-05/0.1294, allocations: 11.97 kB / 455.6 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009011/0.1303, allocations: 411.9 kB / 456 MB, free: 3.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 4.609e-06/0.1303, allocations: 0 / 456 MB, free: 3.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.002609/0.1329, allocations: 0.9596 MB / 456.9 MB, free: 2.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.871e-05/0.133, allocations: 140.5 kB / 457.1 MB, free: 2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.1341, allocations: 0.8871 MB / 457.9 MB, free: 1.105 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.7e-05/0.1342, allocations: 49.7 kB / 458 MB, free: 1.051 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003469/0.1346, allocations: 447.5 kB / 458.4 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.1347, allocations: 138.1 kB / 458.6 MB, free: 484 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/0.1349, allocations: 134.2 kB / 458.7 MB, free: 340 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.1351, allocations: 330 kB / 459 MB, free: 4 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007928/0.1359, allocations: 301.6 kB / 459.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008327/0.1367, allocations: 443.5 kB / 459.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001476/0.1382, allocations: 0.7528 MB / 460.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1382, allocations: 0 / 460.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002063/0.1403, allocations: 1.024 MB / 461.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.1404, allocations: 160.3 kB / 461.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.1404, allocations: 4 kB / 461.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002667/0.1407, allocations: 53.11 kB / 461.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005818/0.1413, allocations: 131.7 kB / 461.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/0.1429, allocations: 1.724 MB / 463.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007133/0.1437, allocations: 115.4 kB / 463.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-05/0.1437, allocations: 28 kB / 463.7 MB, free: 10.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 29 (greaterThreshold.y,fTP72_1.liberal1.pulse1C1.count,$PRE.fTP72_1.liberal1.pulse1C1.count,fTP72_1.liberal1.pulse1C1.T_start,$PRE.fTP72_1.liberal1.pulse1C1.T_start,fTP72_1.liberal1.pulse0_45C.count,$PRE.fTP72_1.liberal1.pulse0_45C.count,fTP72_1.liberal1.pulse0_45C.T_start,$PRE.fTP72_1.liberal1.pulse0_45C.T_start,fTP72_1.liberal1.pulse0_9C.count,$PRE.fTP72_1.liberal1.pulse0_9C.count,fTP72_1.liberal1.pulse0_9C.T_start,$PRE.fTP72_1.liberal1.pulse0_9C.T_start,fTP72_1.liberal1.pulse0_5C.count,$PRE.fTP72_1.liberal1.pulse0_5C.count,fTP72_1.liberal1.pulse0_5C.T_start,$PRE.fTP72_1.liberal1.pulse0_5C.T_start,fTP72_1.liberal1.polse1C.count,$PRE.fTP72_1.liberal1.polse1C.count,fTP72_1.liberal1.polse1C.T_start,$PRE.fTP72_1.liberal1.polse1C.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,batteryCell.calculator.EquivalentCycles.integrator.local_reset,batteryCell.calculator.q.absInt.local_reset,batteryCell.calculator.sOC.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004578/0.1442, allocations: 301.6 kB / 464 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.1443, allocations: 82.91 kB / 464.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001599/0.1445, allocations: 91.58 kB / 464.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.1445, allocations: 48 / 464.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.1445, allocations: 3.984 kB / 464.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.1447, allocations: 172 kB / 464.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.774e-05/0.1448, allocations: 20 kB / 464.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005731/0.1454, allocations: 59.92 kB / 464.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.1456, allocations: 79.91 kB / 464.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002069/0.1476, allocations: 0.7194 MB / 465.2 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002365/0.15, allocations: 1.077 MB / 466.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007161/0.1508, allocations: 295.5 kB / 466.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007707/0.1515, allocations: 0.6123 MB / 467.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of Backend: time 1.062e-06/0.1515, allocations: 0 / 467.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002735/0.1543, allocations: 1.241 MB / 468.5 MB, free: 6.086 MB / 350.1 MB Notification: Performance of SimCode: time 0.002622/0.1569, allocations: 1.93 MB / 470.4 MB, free: 4.102 MB / 350.1 MB Notification: Performance of Templates: time 0.02295/0.1799, allocations: 12.33 MB / 482.7 MB, free: 7.754 MB / 366.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.makefile (rm -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.pipe ; mkfifo ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.pipe ; head -c 1048576 < ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.pipe >> ../files/ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.sim & ./ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle -abortSlowSimulation -alarm=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.pipe 2>&1)