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.001287/0.001287, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001541/0.001541, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.352/1.352, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04405/0.04405, allocations: 7.038 MB / 277.4 MB, free: 14.28 MB / 238.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.0004924/0.0004925, allocations: 12 kB / 336.9 MB, free: 27.62 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07646/0.07696, allocations: 49.08 MB / 386 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle): time 0.004659/0.08165, allocations: 3.844 MB / 389.9 MB, free: 6.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003451/0.08515, allocations: 2.324 MB / 392.2 MB, free: 4.246 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000637/0.08582, allocations: 19.94 kB / 392.2 MB, free: 4.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001286/0.08712, allocations: 490.1 kB / 392.7 MB, free: 3.746 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006871/0.08783, allocations: 195.4 kB / 392.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008678/0.08871, allocations: 251.6 kB / 393.1 MB, free: 3.309 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001546/0.09027, allocations: 0.733 MB / 393.9 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000636/0.09092, allocations: 358.1 kB / 394.2 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004995/0.09143, allocations: 286.8 kB / 394.5 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004813/0.09192, allocations: 318.3 kB / 394.8 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001285/0.09206, allocations: 36 kB / 394.8 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.09226, allocations: 55.92 kB / 394.9 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.09246, allocations: 171.3 kB / 395.1 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002119/0.09268, allocations: 197.2 kB / 395.2 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001067/0.09375, allocations: 1.192 MB / 396.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.09377, allocations: 0 / 396.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.09378, allocations: 4 kB / 396.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.102e-05/0.09382, allocations: 0 / 396.4 MB, free: 15.95 MB / 302.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.002566/0.0964, allocations: 1.31 MB / 397.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.09644, allocations: 8.031 kB / 397.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000271/0.09672, allocations: 106.7 kB / 397.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001335/0.09806, allocations: 0.7312 MB / 398.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.887e-05/0.09815, allocations: 61.98 kB / 398.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001849/0.09835, allocations: 71.94 kB / 398.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001851/0.1002, allocations: 0.8265 MB / 399.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.1002, allocations: 3.984 kB / 399.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.401e-05/0.1003, allocations: 28 kB / 399.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.859e-05/0.1004, allocations: 19.94 kB / 399.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001733/0.1021, allocations: 0.6766 MB / 400.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004061/0.1062, allocations: 2.929 MB / 403.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001466/0.1077, allocations: 0.5782 MB / 403.8 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.158e-05/0.1077, allocations: 8 kB / 403.8 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009589/0.1087, allocations: 438.3 kB / 404.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 3.026e-06/0.1087, allocations: 0 / 404.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.002552/0.1113, allocations: 0.9939 MB / 405.2 MB, free: 6.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.437e-05/0.1114, allocations: 144.5 kB / 405.4 MB, free: 6.664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.1124, allocations: 0.8443 MB / 406.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.4e-05/0.1125, allocations: 53.62 kB / 406.3 MB, free: 5.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003368/0.1128, allocations: 451.6 kB / 406.7 MB, free: 5.305 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.1129, allocations: 138.1 kB / 406.8 MB, free: 5.168 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.308e-05/0.113, allocations: 12 kB / 406.8 MB, free: 5.156 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1131, allocations: 341.8 kB / 407.2 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007484/0.1139, allocations: 305.5 kB / 407.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008005/0.1147, allocations: 467.5 kB / 407.9 MB, free: 3.996 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007915/0.1155, allocations: 458.4 kB / 408.4 MB, free: 3.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.1155, allocations: 4 kB / 408.4 MB, free: 3.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001993/0.1175, allocations: 1.061 MB / 409.4 MB, free: 2.406 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.602e-05/0.1176, allocations: 152.5 kB / 409.6 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.1176, allocations: 4 kB / 409.6 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002167/0.1178, allocations: 52.77 kB / 409.6 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005204/0.1184, allocations: 140.1 kB / 409.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/0.1196, allocations: 1.565 MB / 411.3 MB, free: 336 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007006/0.1203, allocations: 135.4 kB / 411.5 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.1204, allocations: 24 kB / 411.5 MB, free: 176 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 29 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$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,greaterThreshold.y,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 (73): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 5 * 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.0004467/0.1208, allocations: 309.7 kB / 411.8 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.882e-05/0.1209, allocations: 79.02 kB / 411.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/0.1224, allocations: 0.6396 MB / 412.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1225, allocations: 11.94 kB / 412.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.1225, allocations: 0 / 412.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.1225, allocations: 3.984 kB / 412.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002206/0.1247, allocations: 1.486 MB / 414 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1247, allocations: 0 / 414 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003893/0.1251, allocations: 91.89 kB / 414.1 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001349/0.1253, allocations: 44.84 kB / 414.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/0.1253, allocations: 11.98 kB / 414.2 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.1265, allocations: 1.549 MB / 415.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1265, allocations: 0 / 415.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002216/0.1287, allocations: 1.079 MB / 416.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002071/0.1289, allocations: 164.3 kB / 417 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.1291, allocations: 23.98 kB / 417 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005339/0.1296, allocations: 75.92 kB / 417.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.1298, allocations: 83.89 kB / 417.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.1298, allocations: 15.98 kB / 417.2 MB, free: 10.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007703/0.1306, allocations: 0.5889 MB / 417.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1306, allocations: 0 / 417.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007744/0.1314, allocations: 187.4 kB / 417.9 MB, free: 9.469 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (38): * Single equations (assignments): 27 * 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.0007949/0.1322, allocations: 373.7 kB / 418.3 MB, free: 9.098 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001994/0.1342, allocations: 1.08 MB / 419.4 MB, free: 7.941 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1342, allocations: 0 / 419.4 MB, free: 7.941 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009136/0.1352, allocations: 467 kB / 419.8 MB, free: 7.473 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007328/0.1359, allocations: 164.2 kB / 420 MB, free: 7.312 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.1385, allocations: 1.68 MB / 421.7 MB, free: 5.598 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005395/0.1391, allocations: 0.9957 MB / 422.7 MB, free: 4.574 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000333/0.1394, allocations: 69.09 kB / 422.7 MB, free: 4.508 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.1395, allocations: 47.42 kB / 422.8 MB, free: 4.461 MB / 318.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1396, allocations: 0 / 422.8 MB, free: 4.461 MB / 318.1 MB Notification: Performance of Templates: time 0.1535/0.293, allocations: 8.894 MB / 431.7 MB, free: 43.17 MB / 318.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.SimpleCellDrivingCycle.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: