Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.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: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001497/0.001497, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.181/1.181, allocations: 205.1 MB / 222 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.03892/0.03892, allocations: 7.034 MB / 276.4 MB, free: 14.43 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.001573/0.001573, allocations: 67.91 kB / 335.3 MB, free: 27.42 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07458/0.07616, allocations: 48.1 MB / 383.4 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008522/0.08471, allocations: 6.747 MB / 390.2 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006109/0.09085, allocations: 4.397 MB / 394.6 MB, free: 36 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.09195, allocations: 35.88 kB / 394.6 MB, free: 0 / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002313/0.09428, allocations: 0.8559 MB / 395.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001067/0.09537, allocations: 290.1 kB / 395.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.09641, allocations: 0.6285 MB / 396.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001765/0.09818, allocations: 2.006 MB / 398.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001169/0.09936, allocations: 1.068 MB / 399.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004949/0.09987, allocations: 0.5406 MB / 400 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005207/0.1004, allocations: 0.6335 MB / 400.6 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.1005, allocations: 104 kB / 400.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002411/0.1008, allocations: 135.9 kB / 400.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002352/0.101, allocations: 306.8 kB / 401.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000582/0.1016, allocations: 0.7694 MB / 401.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002004/0.1036, allocations: 2.89 MB / 404.8 MB, free: 5.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.1036, allocations: 0 / 404.8 MB, free: 5.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1037, allocations: 4 kB / 404.8 MB, free: 5.727 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.1037, allocations: 0 / 404.8 MB, free: 5.727 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: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.002936/0.1066, allocations: 1.947 MB / 406.8 MB, free: 3.715 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.1067, allocations: 8.031 kB / 406.8 MB, free: 3.707 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002604/0.1069, allocations: 174.9 kB / 406.9 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002247/0.1072, allocations: 170.9 kB / 407.1 MB, free: 3.355 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/0.1088, allocations: 1.361 MB / 408.5 MB, free: 1.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.702e-05/0.1089, allocations: 90.48 kB / 408.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.109, allocations: 111.9 kB / 408.7 MB, free: 1.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002112/0.1112, allocations: 1.339 MB / 410 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.1112, allocations: 3.938 kB / 410 MB, free: 320 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.168e-05/0.1113, allocations: 48 kB / 410 MB, free: 272 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.1113, allocations: 31.94 kB / 410.1 MB, free: 240 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001668/0.113, allocations: 1.011 MB / 411.1 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005953/0.1189, allocations: 5.662 MB / 416.8 MB, free: 9.438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001836/0.1208, allocations: 2.154 MB / 418.9 MB, free: 6.969 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006666/0.1215, allocations: 403.2 kB / 419.3 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/0.1215, allocations: 4.562 kB / 419.3 MB, free: 6.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006922/0.1222, allocations: 451.2 kB / 419.7 MB, free: 6.109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.963e-06/0.1222, allocations: 0 / 419.7 MB, free: 6.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.001674/0.1239, allocations: 0.9701 MB / 420.7 MB, free: 5.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.591e-05/0.124, allocations: 162.8 kB / 420.9 MB, free: 4.938 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001645/0.1257, allocations: 1.481 MB / 422.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.1257, allocations: 37.7 kB / 422.4 MB, free: 3.398 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004744/0.1262, allocations: 0.6479 MB / 423 MB, free: 2.742 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.1263, allocations: 201.2 kB / 423.2 MB, free: 2.543 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002125/0.1266, allocations: 138.6 kB / 423.4 MB, free: 2.402 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1267, allocations: 337.9 kB / 423.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005843/0.1273, allocations: 325.9 kB / 424 MB, free: 1.746 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006747/0.128, allocations: 0.5193 MB / 424.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1302/0.2581, allocations: 1.65 MB / 426.2 MB, free: 44.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.2582, allocations: 1.062 kB / 426.2 MB, free: 44.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001795/0.26, allocations: 1.018 MB / 427.2 MB, free: 44.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/0.26, allocations: 34.62 kB / 427.2 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.2601, allocations: 6.156 kB / 427.2 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.673e-05/0.2601, allocations: 11.38 kB / 427.3 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006621/0.2608, allocations: 167.2 kB / 427.4 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.649e-05/0.2608, allocations: 14.14 kB / 427.4 MB, free: 44.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005388/0.2613, allocations: 92.28 kB / 427.5 MB, free: 44.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.149e-05/0.2614, allocations: 31.36 kB / 427.6 MB, free: 44.76 MB / 318.1 MB Warning: Assuming fixed start value for the following 1 variables: batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$whenCondition1,batteryCell.selfDischarge.qabs.absInt.local_reset,batteryCell.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,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 (91): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007341/0.2621, allocations: 0.5286 MB / 428.1 MB, free: 44.64 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.2623, allocations: 114.5 kB / 428.2 MB, free: 44.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001369/0.2636, allocations: 0.7757 MB / 429 MB, free: 44.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.2637, allocations: 6.719 kB / 429 MB, free: 44.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2637, allocations: 4.594 kB / 429 MB, free: 44.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.2637, allocations: 6.375 kB / 429 MB, free: 44.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003139/0.2668, allocations: 2.436 MB / 431.4 MB, free: 43.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2669, allocations: 1.156 kB / 431.4 MB, free: 43.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005648/0.2674, allocations: 116 kB / 431.5 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.2674, allocations: 2.688 kB / 431.5 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.73e-05/0.2675, allocations: 18.91 kB / 431.6 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.2675, allocations: 2.219 kB / 431.6 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2675, allocations: 1.719 kB / 431.6 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.2693, allocations: 1.207 MB / 432.8 MB, free: 42.47 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002411/0.2696, allocations: 248.7 kB / 433 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.2697, allocations: 17.7 kB / 433 MB, free: 42.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004212/0.2701, allocations: 35.52 kB / 433.1 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.2702, allocations: 37.64 kB / 433.1 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.759e-05/0.2703, allocations: 18.41 kB / 433.1 MB, free: 42.24 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001354/0.2716, allocations: 1.036 MB / 434.2 MB, free: 41.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2716, allocations: 1.406 kB / 434.2 MB, free: 41.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000769/0.2724, allocations: 267.1 kB / 434.4 MB, free: 41.75 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (batteryCell.calculator.sOC.integrator.y,batteryCell.calculator.q.absInt.y,batteryCell.calculator.EquivalentCycles.integrator.y,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,batteryCell.cellImpedance.rs.impedanceValue.qabs.absInt.y,batteryCell.selfDischarge.qabs.absInt.y) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002843/0.2753, allocations: 2.047 MB / 436.5 MB, free: 40.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.2766, allocations: 0.7859 MB / 437.3 MB, free: 40.08 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2767, allocations: 0 / 437.3 MB, free: 40.08 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005537/0.2772, allocations: 331.1 kB / 437.6 MB, free: 39.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.2783, allocations: 249.8 kB / 437.8 MB, free: 39.87 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01853/0.2969, allocations: 13.39 MB / 451.2 MB, free: 30.94 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006868/0.2976, allocations: 1.376 MB / 452.6 MB, free: 29.54 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006526/0.2983, allocations: 183.8 kB / 452.8 MB, free: 29.35 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005751/0.2989, allocations: 0.4912 MB / 453.3 MB, free: 28.87 MB / 318.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2989, allocations: 4 kB / 453.3 MB, free: 28.86 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.89/4.189, allocations: 26.56 MB / 479.8 MB, free: 2.227 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000165/4.189, allocations: 256.8 kB / 480.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.31/6.499, allocations: 0 / 480.1 MB, free: 1.875 MB / 318.1 MB (rm -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe ; mkfifo ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe ; head -c 1048576 < ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe >> ../files/ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent_fmu --startTime=0 --stopTime=14100 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1)