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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001547/0.001547, allocations: 187.3 kB / 7.654 MB, free: 1.402 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.08865/0.08866, allocations: 7.04 MB / 15.12 MB, free: 188 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.489/1.489, allocations: 194.3 MB / 211.4 MB, free: 15.36 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001561/0.001561, allocations: 118.7 kB / 257.8 MB, free: 1.484 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.403e-05/1.377e-05, allocations: 0 / 310 MB, free: 13.27 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.3357, allocations: 45.98 MB / 356 MB, free: 46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1153/0.4511, allocations: 83.03 MB / 439 MB, free: 8.574 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.4514, allocations: 87.95 kB / 439.1 MB, free: 8.488 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo:2265:13-2265:95:writable] Warning: connect(y, y) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.04887/0.5002, allocations: 18.16 MB / 457.3 MB, free: 6.504 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5003, allocations: 0 / 457.3 MB, free: 6.504 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.719e-05/0.5004, allocations: 24.12 kB / 457.3 MB, free: 6.48 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.002994/0.5034, allocations: 1.215 MB / 458.5 MB, free: 5.172 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.5034, allocations: 8.031 kB / 458.5 MB, free: 5.164 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000407/0.5039, allocations: 102.8 kB / 458.6 MB, free: 5.062 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001219/0.5051, allocations: 0.613 MB / 459.2 MB, free: 4.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.745e-05/0.5052, allocations: 31.92 kB / 459.3 MB, free: 4.379 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.5053, allocations: 47.91 kB / 459.3 MB, free: 4.332 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000977/0.5063, allocations: 458.5 kB / 459.8 MB, free: 3.883 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.5075, allocations: 0.5752 MB / 460.3 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.5075, allocations: 0 / 460.3 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.783e-05/0.5076, allocations: 4 kB / 460.3 MB, free: 3.289 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.5076, allocations: 16 kB / 460.4 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00444/0.5121, allocations: 2.38 MB / 462.7 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008209/0.5129, allocations: 415.2 kB / 463.1 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002808/0.5132, allocations: 173.7 kB / 463.3 MB, free: 252 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.065e-05/0.5133, allocations: 11.98 kB / 463.3 MB, free: 240 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005676/0.5139, allocations: 328.2 kB / 463.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 2.034e-06/0.5139, allocations: 0 / 463.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.0009475/0.5148, allocations: 433.9 kB / 464.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.5149, allocations: 144.5 kB / 464.2 MB, free: 15.29 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.516, allocations: 0.6519 MB / 464.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.056e-05/0.5161, allocations: 41.7 kB / 464.9 MB, free: 14.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003847/0.5165, allocations: 419.6 kB / 465.3 MB, free: 14.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.5167, allocations: 135.9 kB / 465.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.5167, allocations: 4 kB / 465.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002256/0.5169, allocations: 386.6 kB / 465.8 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004056/0.5173, allocations: 205.5 kB / 466 MB, free: 13.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004502/0.5178, allocations: 299.3 kB / 466.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003793/0.5182, allocations: 200.3 kB / 466.5 MB, free: 12.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.5182, allocations: 0 / 466.5 MB, free: 12.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001177/0.5194, allocations: 0.6317 MB / 467.1 MB, free: 12.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001393/0.5195, allocations: 178.2 kB / 467.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.5196, allocations: 0 / 467.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002273/0.5198, allocations: 48.33 kB / 467.4 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005486/0.5203, allocations: 132 kB / 467.5 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.5219, allocations: 1.497 MB / 469 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007544/0.5226, allocations: 107.5 kB / 469.1 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-05/0.5227, allocations: 23.98 kB / 469.1 MB, free: 10.16 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: output V:VARIABLE(unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fTP72_1.on,$PRE.fTP72_1.liberal1.polse1C.T_start,fTP72_1.liberal1.polse1C.T_start,$PRE.fTP72_1.liberal1.polse1C.count,fTP72_1.liberal1.polse1C.count,$PRE.fTP72_1.liberal1.pulse0_5C.T_start,fTP72_1.liberal1.pulse0_5C.T_start,$PRE.fTP72_1.liberal1.pulse0_5C.count,fTP72_1.liberal1.pulse0_5C.count,$PRE.fTP72_1.liberal1.pulse0_9C.T_start,fTP72_1.liberal1.pulse0_9C.T_start,$PRE.fTP72_1.liberal1.pulse0_9C.count,fTP72_1.liberal1.pulse0_9C.count,$PRE.fTP72_1.liberal1.pulse0_45C.T_start,fTP72_1.liberal1.pulse0_45C.T_start,$PRE.fTP72_1.liberal1.pulse0_45C.count,fTP72_1.liberal1.pulse0_45C.count,$PRE.fTP72_1.liberal1.pulse1C1.T_start,fTP72_1.liberal1.pulse1C1.T_start,$PRE.fTP72_1.liberal1.pulse1C1.count,fTP72_1.liberal1.pulse1C1.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002466/0.523, allocations: 140 kB / 469.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.5231, allocations: 71.16 kB / 469.3 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008555/0.524, allocations: 474.4 kB / 469.8 MB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.524, allocations: 8 kB / 469.8 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.524, allocations: 0 / 469.8 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.524, allocations: 0 / 469.8 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.5258, allocations: 1.206 MB / 471 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.5258, allocations: 3.953 kB / 471 MB, free: 8.203 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004436/0.5263, allocations: 99.8 kB / 471.1 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001327/0.5264, allocations: 41.66 kB / 471.1 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.336e-05/0.5265, allocations: 11.98 kB / 471.2 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001337/0.5278, allocations: 1.493 MB / 472.7 MB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.5278, allocations: 6.406 kB / 472.7 MB, free: 6.441 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.5289, allocations: 0.7512 MB / 473.4 MB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002084/0.5291, allocations: 172.2 kB / 473.6 MB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.5292, allocations: 8 kB / 473.6 MB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005588/0.5298, allocations: 72.02 kB / 473.7 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002183/0.53, allocations: 87.88 kB / 473.7 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.754e-05/0.5301, allocations: 12 kB / 473.8 MB, free: 5.309 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007861/0.5309, allocations: 0.507 MB / 474.3 MB, free: 4.809 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5309, allocations: 2.062 kB / 474.3 MB, free: 4.809 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008219/0.5317, allocations: 187.3 kB / 474.4 MB, free: 4.625 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (batteryCell.calculator.sOC.integrator.y,batteryCell.calculator.q.absInt.y,batteryCell.calculator.EquivalentCycles.integrator.y) * Number of discrete variables: 16 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fTP72_1.on,fTP72_1.liberal1.polse1C.T_start,fTP72_1.liberal1.polse1C.count,fTP72_1.liberal1.pulse0_5C.T_start,fTP72_1.liberal1.pulse0_5C.count,fTP72_1.liberal1.pulse0_9C.T_start,fTP72_1.liberal1.pulse0_9C.count,fTP72_1.liberal1.pulse0_45C.T_start,fTP72_1.liberal1.pulse0_45C.count,fTP72_1.liberal1.pulse1C1.T_start,fTP72_1.liberal1.pulse1C1.count) * Number of discrete states: 5 (fTP72_1.liberal1.polse1C.count,fTP72_1.liberal1.pulse0_5C.count,fTP72_1.liberal1.pulse0_9C.count,fTP72_1.liberal1.pulse0_45C.count,fTP72_1.liberal1.pulse1C1.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001048/0.5328, allocations: 368.3 kB / 474.8 MB, free: 4.328 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.5343, allocations: 0.8987 MB / 475.7 MB, free: 3.348 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5343, allocations: 0 / 475.7 MB, free: 3.348 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006333/0.5349, allocations: 341.2 kB / 476 MB, free: 3.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007742/0.5357, allocations: 114.4 kB / 476.2 MB, free: 2.891 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002591/0.5383, allocations: 1.017 MB / 477.2 MB, free: 1.844 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009406/0.5393, allocations: 0.976 MB / 478.1 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003827/0.5397, allocations: 68.61 kB / 478.2 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001729/0.5399, allocations: 47.42 kB / 478.3 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of SimCode: time 8.52e-07/0.5399, allocations: 0 / 478.3 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of Templates: time 0.01748/0.5573, allocations: 8.594 MB / 486.9 MB, free: 8.117 MB / 378.7 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)