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.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.0009842/0.0009842, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 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.0009545/0.0009545, allocations: 173.4 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8465/0.8465, allocations: 158.6 MB / 185.2 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo): time 0.05288/0.05288, allocations: 5.561 MB / 243.1 MB, free: 9.434 MB / 234.7 MB " [Timeout remaining time 180] Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 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.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(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6930,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle") translateModel(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6930,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 261.2 MB, free: 7.367 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.501e-05/2.68e-05, allocations: 10.25 kB / 261.2 MB, free: 7.355 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.006574/0.006601, allocations: 4.451 MB / 265.6 MB, free: 2.875 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004707/0.01131, allocations: 2.749 MB / 268.4 MB, free: 112 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006237/0.01193, allocations: 23.88 kB / 268.4 MB, free: 88 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001576/0.01351, allocations: 0.6297 MB / 269 MB, free: 15.45 MB / 266.7 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.0007631/0.01427, allocations: 246.1 kB / 269.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008914/0.01516, allocations: 443.3 kB / 269.7 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001684/0.01685, allocations: 1.264 MB / 271 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005612/0.01741, allocations: 323.3 kB / 271.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008646/0.01827, allocations: 0.6471 MB / 271.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005198/0.01879, allocations: 347 kB / 272.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002198/0.01901, allocations: 132 kB / 272.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002704/0.01928, allocations: 159.9 kB / 272.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002458/0.01953, allocations: 275.1 kB / 272.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004903/0.02002, allocations: 343.2 kB / 273.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.02122, allocations: 0.8447 MB / 274 MB, free: 10.44 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.02123, allocations: 4 kB / 274 MB, free: 10.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.02123, allocations: 0 / 274 MB, free: 10.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.528e-05/0.02125, allocations: 0 / 274 MB, free: 10.43 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002135/0.02339, allocations: 1.345 MB / 275.4 MB, free: 9.027 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.02344, allocations: 11.98 kB / 275.4 MB, free: 9.016 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.02366, allocations: 124.8 kB / 275.5 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007288/0.02439, allocations: 433.9 kB / 275.9 MB, free: 8.445 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.34e-05/0.02445, allocations: 62.38 kB / 276 MB, free: 8.383 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.02456, allocations: 68.38 kB / 276.1 MB, free: 8.316 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009561/0.02551, allocations: 0.6481 MB / 276.7 MB, free: 7.617 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.02554, allocations: 3.938 kB / 276.7 MB, free: 7.613 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.201e-05/0.02559, allocations: 28 kB / 276.7 MB, free: 7.586 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.02561, allocations: 16 kB / 276.7 MB, free: 7.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003832/0.02599, allocations: 161 kB / 276.9 MB, free: 7.414 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002783/0.02877, allocations: 1.838 MB / 278.7 MB, free: 5.516 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004309/0.0292, allocations: 190.4 kB / 278.9 MB, free: 5.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.02933, allocations: 68.55 kB / 279 MB, free: 5.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.885e-05/0.02937, allocations: 11.94 kB / 279 MB, free: 5.238 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00037/0.02974, allocations: 261.9 kB / 279.3 MB, free: 4.957 MB / 266.7 MB Notification: Performance of pre-optimization done (n=46): time 2.956e-06/0.02974, allocations: 0 / 279.3 MB, free: 4.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=46): time 0.0007846/0.03053, allocations: 329.9 kB / 279.6 MB, free: 4.625 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.111e-05/0.03061, allocations: 140.5 kB / 279.7 MB, free: 4.457 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007072/0.03132, allocations: 0.6302 MB / 280.4 MB, free: 3.812 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.323e-05/0.03137, allocations: 41.7 kB / 280.4 MB, free: 3.766 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000252/0.03162, allocations: 366.1 kB / 280.8 MB, free: 3.402 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.03174, allocations: 154.8 kB / 280.9 MB, free: 3.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001851/0.03193, allocations: 134.2 kB / 281 MB, free: 3.113 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.03208, allocations: 390.6 kB / 281.4 MB, free: 2.723 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002945/0.03237, allocations: 218.1 kB / 281.6 MB, free: 2.477 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003954/0.03277, allocations: 453.2 kB / 282.1 MB, free: 1.934 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005257/0.0333, allocations: 451.1 kB / 282.5 MB, free: 1.418 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.0333, allocations: 0 / 282.5 MB, free: 1.418 MB / 266.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.0008785/0.03418, allocations: 0.6512 MB / 283.2 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.882e-05/0.03428, allocations: 156.5 kB / 283.3 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.03429, allocations: 4 kB / 283.3 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001673/0.03446, allocations: 44.77 kB / 283.4 MB, free: 472 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003816/0.03484, allocations: 120.3 kB / 283.5 MB, free: 352 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/0.036, allocations: 1.433 MB / 284.9 MB, free: 14.83 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004274/0.03643, allocations: 91.58 kB / 285 MB, free: 14.74 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.815e-05/0.03647, allocations: 23.98 kB / 285 MB, free: 14.71 MB / 282.7 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 (batteryCell.calculator.sOC.integrator.local_reset,batteryCell.calculator.q.absInt.local_reset,batteryCell.calculator.EquivalentCycles.integrator.local_reset,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) * 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.0002811/0.03676, allocations: 180.5 kB / 285.2 MB, free: 14.53 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.509e-05/0.03685, allocations: 55.94 kB / 285.3 MB, free: 14.47 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.03697, allocations: 75.12 kB / 285.3 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.03697, allocations: 4 kB / 285.3 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.03698, allocations: 0 / 285.3 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.03699, allocations: 3.984 kB / 285.3 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.03799, allocations: 0.668 MB / 286 MB, free: 13.69 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.03799, allocations: 0 / 286 MB, free: 13.69 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002472/0.03824, allocations: 63.89 kB / 286.1 MB, free: 13.63 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001132/0.03835, allocations: 36.83 kB / 286.1 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.015e-05/0.03838, allocations: 12 kB / 286.1 MB, free: 13.58 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009665/0.03935, allocations: 1.422 MB / 287.5 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.03935, allocations: 0 / 287.5 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005759/0.03993, allocations: 417.6 kB / 287.9 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.968e-05/0.04003, allocations: 71.5 kB / 288 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.083e-05/0.04011, allocations: 19.98 kB / 288 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.04038, allocations: 39.91 kB / 288.1 MB, free: 11.51 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.04054, allocations: 67.88 kB / 288.1 MB, free: 11.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.04057, allocations: 8 kB / 288.1 MB, free: 11.44 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003576/0.04092, allocations: 299.4 kB / 288.4 MB, free: 11.14 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04092, allocations: 0 / 288.4 MB, free: 11.14 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006854/0.04161, allocations: 199.5 kB / 288.6 MB, free: 10.95 MB / 282.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.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,greaterThreshold.y) * 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) * Number of clocked states: 0 () * 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 (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 Backend phase and start with SimCode phase: time 0.001401/0.04301, allocations: 467.4 kB / 289.1 MB, free: 10.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009664/0.04398, allocations: 0.806 MB / 289.9 MB, free: 9.617 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.651e-05/0.04399, allocations: 8 kB / 289.9 MB, free: 9.609 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003369/0.04433, allocations: 251.3 kB / 290.2 MB, free: 9.348 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006043/0.04494, allocations: 167.4 kB / 290.3 MB, free: 9.188 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.04737, allocations: 1.271 MB / 291.6 MB, free: 7.875 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001653/0.04753, allocations: 166.4 kB / 291.7 MB, free: 7.688 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003028/0.04783, allocations: 76.89 kB / 291.8 MB, free: 7.609 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003834/0.04822, allocations: 177.3 kB / 292 MB, free: 7.434 MB / 282.7 MB Notification: Performance of SimCode: time 1.353e-06/0.04822, allocations: 0 / 292 MB, free: 7.434 MB / 282.7 MB Notification: Performance of Templates: time 0.1227/0.171, allocations: 11.28 MB / 303.3 MB, free: 45.55 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.makefile [Timeout 660] (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=240 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.842763490974903]