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: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_SimpleCellDrivingCycle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_SimpleCellDrivingCycle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001015/0.001015, allocations: 179.4 kB / 7.652 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.0526/0.0526, allocations: 7.041 MB / 15.12 MB, free: 184 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.617/1.617, allocations: 194.3 MB / 211.4 MB, free: 15.38 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.001558/0.001558, allocations: 115.9 kB / 257.8 MB, free: 1.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.446e-05/1.448e-05, allocations: 0 / 310.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3637, allocations: 45.98 MB / 356.1 MB, free: 45.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1099/0.4736, allocations: 83.03 MB / 439.1 MB, free: 8.453 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.4739, allocations: 83.95 kB / 439.2 MB, free: 8.371 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.04665/0.5206, allocations: 18.16 MB / 457.4 MB, free: 6.398 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.5206, allocations: 0 / 457.4 MB, free: 6.398 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.286e-05/0.5206, allocations: 17.03 kB / 457.4 MB, free: 6.383 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.002402/0.5231, allocations: 1.231 MB / 458.6 MB, free: 5.059 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.5231, allocations: 8.031 kB / 458.6 MB, free: 5.051 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002006/0.5233, allocations: 110.6 kB / 458.7 MB, free: 4.941 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000936/0.5243, allocations: 0.6053 MB / 459.3 MB, free: 4.297 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.046e-05/0.5243, allocations: 27.98 kB / 459.4 MB, free: 4.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.269e-05/0.5244, allocations: 43.91 kB / 459.4 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008826/0.5253, allocations: 454.5 kB / 459.9 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.5263, allocations: 0.5791 MB / 460.4 MB, free: 3.188 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.5264, allocations: 8 kB / 460.4 MB, free: 3.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.258e-05/0.5264, allocations: 0 / 460.4 MB, free: 3.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.5264, allocations: 16.94 kB / 460.5 MB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003871/0.5303, allocations: 2.382 MB / 462.8 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007475/0.5311, allocations: 420.9 kB / 463.3 MB, free: 308 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002596/0.5314, allocations: 171.5 kB / 463.4 MB, free: 136 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.966e-05/0.5314, allocations: 7.984 kB / 463.4 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000508/0.5319, allocations: 328.3 kB / 463.7 MB, free: 15.78 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 2.365e-06/0.5319, allocations: 4 kB / 463.8 MB, free: 15.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.0008387/0.5328, allocations: 429.9 kB / 464.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.436e-05/0.5329, allocations: 152.4 kB / 464.3 MB, free: 15.17 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008216/0.5337, allocations: 0.6558 MB / 465 MB, free: 14.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.42e-05/0.5338, allocations: 38.73 kB / 465 MB, free: 14.47 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003117/0.5341, allocations: 415.6 kB / 465.4 MB, free: 14.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.5342, allocations: 134 kB / 465.6 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.131e-05/0.5343, allocations: 4 kB / 465.6 MB, free: 13.92 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.5344, allocations: 390.7 kB / 465.9 MB, free: 13.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.5348, allocations: 205.5 kB / 466.1 MB, free: 13.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003954/0.5352, allocations: 295.3 kB / 466.4 MB, free: 13.01 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003229/0.5355, allocations: 200.3 kB / 466.6 MB, free: 12.81 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.5355, allocations: 0 / 466.6 MB, free: 12.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001066/0.5366, allocations: 0.6278 MB / 467.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000109/0.5367, allocations: 183.8 kB / 467.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.5367, allocations: 0 / 467.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002085/0.5369, allocations: 55.83 kB / 467.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005433/0.5375, allocations: 127.8 kB / 467.6 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.5389, allocations: 1.493 MB / 469.1 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006734/0.5396, allocations: 111.4 kB / 469.2 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.316e-05/0.5396, allocations: 27.98 kB / 469.2 MB, free: 10.04 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.000222/0.5399, allocations: 143.6 kB / 469.4 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007158/0.5406, allocations: 437.2 kB / 469.8 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.5407, allocations: 75.11 kB / 469.9 MB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008433/0.5415, allocations: 466.2 kB / 470.3 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.5416, allocations: 4 kB / 470.3 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.5416, allocations: 0 / 470.3 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.5416, allocations: 3.984 kB / 470.3 MB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001537/0.5431, allocations: 1.214 MB / 471.6 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.5431, allocations: 0 / 471.6 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004559/0.5436, allocations: 99.86 kB / 471.7 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001179/0.5437, allocations: 36.84 kB / 471.7 MB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.625e-05/0.5438, allocations: 11.98 kB / 471.7 MB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001137/0.5449, allocations: 1.494 MB / 473.2 MB, free: 5.891 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5449, allocations: 0 / 473.2 MB, free: 5.891 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.546, allocations: 0.7497 MB / 473.9 MB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001893/0.5462, allocations: 172.2 kB / 474.1 MB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.178e-05/0.5463, allocations: 11.94 kB / 474.1 MB, free: 4.926 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005715/0.5468, allocations: 75.88 kB / 474.2 MB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.5471, allocations: 87.88 kB / 474.3 MB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.353e-05/0.5471, allocations: 12 kB / 474.3 MB, free: 4.754 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006981/0.5478, allocations: 0.5031 MB / 474.8 MB, free: 4.258 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5478, allocations: 0 / 474.8 MB, free: 4.258 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008105/0.5486, allocations: 191.2 kB / 475 MB, free: 4.07 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.002085/0.5507, allocations: 1.557 MB / 476.5 MB, free: 2.551 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00122/0.552, allocations: 0.8984 MB / 477.4 MB, free: 1.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.552, allocations: 0 / 477.4 MB, free: 1.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004586/0.5524, allocations: 341.6 kB / 477.8 MB, free: 1.227 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007006/0.5532, allocations: 125.7 kB / 477.9 MB, free: 1.102 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.5556, allocations: 1.139 MB / 479 MB, free: 15.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005718/0.5562, allocations: 0.9799 MB / 480 MB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003487/0.5565, allocations: 80.52 kB / 480.1 MB, free: 14.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004424/0.557, allocations: 283.3 kB / 480.4 MB, free: 14.55 MB / 378.7 MB Notification: Performance of SimCode: time 2.705e-06/0.557, allocations: 0 / 480.4 MB, free: 14.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04031/0.5973, allocations: 15.1 MB / 495.5 MB, free: 15.43 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/0.5976, allocations: 184.2 kB / 495.7 MB, free: 15.24 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.383/2.98, allocations: 0 / 495.7 MB, free: 15.24 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_SimpleCellDrivingCycle_fmu --startTime=0 --stopTime=6930 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_SimpleCellDrivingCycle.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.pipe 2>&1)