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.001528/0.001528, allocations: 108.5 kB / 16.41 MB, free: 6.52 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.001809/0.001809, allocations: 186.7 kB / 17.35 MB, free: 5.738 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.251/1.251, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04632/0.04632, allocations: 7.038 MB / 277.6 MB, free: 4.949 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.001523/0.001523, allocations: 77.22 kB / 386 MB, free: 48.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06345/0.06498, allocations: 48.11 MB / 434.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.004725/0.06973, allocations: 4.633 MB / 438.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002993/0.07275, allocations: 2.707 MB / 441.4 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003738/0.07317, allocations: 15.94 kB / 441.4 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001105/0.07428, allocations: 0.6182 MB / 442 MB, free: 1.406 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.0004112/0.07471, allocations: 238.2 kB / 442.3 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005454/0.07526, allocations: 427.4 kB / 442.7 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009761/0.07625, allocations: 1.291 MB / 444 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006079/0.07687, allocations: 482.7 kB / 444.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004145/0.07729, allocations: 450.5 kB / 444.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004143/0.07772, allocations: 446 kB / 445.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001503/0.07787, allocations: 132 kB / 445.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002182/0.0781, allocations: 163.9 kB / 445.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002292/0.07834, allocations: 271.1 kB / 445.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004251/0.07877, allocations: 0.5209 MB / 446.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001365/0.08014, allocations: 1.562 MB / 448 MB, free: 11.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.08016, allocations: 0 / 448 MB, free: 11.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.08017, allocations: 0 / 448 MB, free: 11.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.08018, 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.002553/0.08274, allocations: 1.469 MB / 449.4 MB, free: 9.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.08278, allocations: 8.031 kB / 449.4 MB, free: 9.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.08295, allocations: 107.7 kB / 449.5 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009082/0.08387, allocations: 0.6813 MB / 450.2 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.844e-05/0.08393, allocations: 62.38 kB / 450.3 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.08405, allocations: 72.12 kB / 450.4 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.08568, allocations: 0.8178 MB / 451.2 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.08571, allocations: 0 / 451.2 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.795e-05/0.08578, allocations: 28 kB / 451.2 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.0858, allocations: 16 kB / 451.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.08754, allocations: 0.6452 MB / 451.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003553/0.09111, allocations: 2.888 MB / 454.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/0.09271, allocations: 0.565 MB / 455.3 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007113/0.09343, allocations: 252.5 kB / 455.6 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.09348, allocations: 4 kB / 455.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009359/0.09442, allocations: 415.8 kB / 456 MB, free: 3.145 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.893e-06/0.09444, allocations: 0 / 456 MB, free: 3.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=46): time 0.002653/0.0971, allocations: 0.9557 MB / 456.9 MB, free: 2.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.09717, allocations: 148.4 kB / 457.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/0.09818, allocations: 0.891 MB / 458 MB, free: 1.086 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.251e-05/0.09825, allocations: 45.7 kB / 458 MB, free: 1.035 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003104/0.09857, allocations: 443.5 kB / 458.4 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.0987, allocations: 142.1 kB / 458.6 MB, free: 468 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/0.09891, allocations: 130.2 kB / 458.7 MB, free: 328 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.09903, allocations: 330 kB / 459 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008323/0.09987, allocations: 301.5 kB / 459.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008856/0.1008, allocations: 439.6 kB / 459.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001529/0.1023, allocations: 0.7528 MB / 460.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.1023, allocations: 0 / 460.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002103/0.1044, allocations: 1.032 MB / 461.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.832e-05/0.1045, allocations: 152.4 kB / 461.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.1045, allocations: 8.359 kB / 461.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001973/0.1047, allocations: 56.78 kB / 461.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005788/0.1053, allocations: 123.8 kB / 461.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.1067, allocations: 1.735 MB / 463.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007132/0.1074, allocations: 111.4 kB / 463.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.995e-05/0.1075, allocations: 28 kB / 463.7 MB, free: 10.94 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.0003686/0.1079, allocations: 301.8 kB / 464 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.108, allocations: 82.91 kB / 464.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001596/0.1082, allocations: 87.58 kB / 464.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1082, allocations: 0 / 464.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1082, allocations: 0 / 464.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.1084, allocations: 172 kB / 464.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.1085, allocations: 24 kB / 464.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005633/0.109, allocations: 55.92 kB / 464.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.1092, allocations: 79.91 kB / 464.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002189/0.1114, allocations: 0.7272 MB / 465.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002377/0.1138, allocations: 1.077 MB / 466.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007439/0.1146, allocations: 287.6 kB / 466.6 MB, free: 8.004 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007596/0.1154, allocations: 0.6123 MB / 467.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of Backend: time 2e-07/0.1154, allocations: 0 / 467.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002571/0.1179, allocations: 1.246 MB / 468.5 MB, free: 6.074 MB / 350.1 MB Notification: Performance of SimCode: time 0.002441/0.1204, allocations: 1.93 MB / 470.4 MB, free: 4.09 MB / 350.1 MB Notification: Performance of Templates: time 0.01965/0.1401, allocations: 12.33 MB / 482.7 MB, free: 7.738 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)