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/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.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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.007249/0.00725, allocations: 190.8 kB / 7.464 MB, free: 2.242 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.1341/0.1341, allocations: 7.041 MB / 14.91 MB, free: 240 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.118/3.118, allocations: 194.2 MB / 211 MB, free: 15.43 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.002375/0.002374, allocations: 120.7 kB / 257.5 MB, free: 308 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2618/0.2642, allocations: 52.09 MB / 309.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5768/0.8411, allocations: 45.97 MB / 355.6 MB, free: 46.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1978/1.039, allocations: 85.18 MB / 440.7 MB, free: 6.316 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000358/1.039, allocations: 87.78 kB / 440.8 MB, free: 6.234 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.1127/1.152, allocations: 33.21 MB / 474 MB, free: 5.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.587e-05/1.152, allocations: 11.94 kB / 474 MB, free: 5.148 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001296/1.154, allocations: 158 kB / 474.2 MB, free: 4.992 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006072/1.16, allocations: 1.192 MB / 475.4 MB, free: 3.742 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002051/1.16, allocations: 36 kB / 475.4 MB, free: 3.707 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008354/1.161, allocations: 67.91 kB / 475.5 MB, free: 3.641 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004676/1.165, allocations: 0.8241 MB / 476.3 MB, free: 2.816 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005411/1.171, allocations: 0.9939 MB / 477.3 MB, free: 1.805 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.331e-05/1.171, allocations: 7.922 kB / 477.3 MB, free: 1.797 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001487/1.171, allocations: 0 / 477.3 MB, free: 1.797 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.696e-05/1.171, allocations: 24 kB / 477.3 MB, free: 1.773 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01193/1.183, allocations: 4.249 MB / 481.6 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/1.184, allocations: 491.1 kB / 482.1 MB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009715/1.185, allocations: 471.7 kB / 482.5 MB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.355e-05/1.185, allocations: 4.5 kB / 482.5 MB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007655/1.186, allocations: 398.1 kB / 482.9 MB, free: 12.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 3.135e-06/1.186, allocations: 4 kB / 482.9 MB, free: 12.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.001656/1.188, allocations: 0.6324 MB / 483.6 MB, free: 11.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001642/1.188, allocations: 162.7 kB / 483.7 MB, free: 11.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002931/1.191, allocations: 1.142 MB / 484.9 MB, free: 10.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001203/1.191, allocations: 25.7 kB / 484.9 MB, free: 10.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/1.192, allocations: 435.2 kB / 485.3 MB, free: 9.637 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000303/1.193, allocations: 185.2 kB / 485.5 MB, free: 9.453 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/1.193, allocations: 0 / 485.5 MB, free: 9.453 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002225/1.193, allocations: 337.9 kB / 485.8 MB, free: 9.117 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006193/1.194, allocations: 277.2 kB / 486.1 MB, free: 8.844 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005782/1.194, allocations: 370.4 kB / 486.4 MB, free: 8.457 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006237/1.195, allocations: 327.8 kB / 486.8 MB, free: 8.137 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/1.195, allocations: 0 / 486.8 MB, free: 8.137 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001613/1.196, allocations: 0.776 MB / 487.5 MB, free: 7.352 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/1.196, allocations: 8 kB / 487.6 MB, free: 7.344 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/1.197, allocations: 112 / 487.6 MB, free: 7.344 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.163e-05/1.197, allocations: 7.938 kB / 487.6 MB, free: 7.336 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008326/1.197, allocations: 155.9 kB / 487.7 MB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/1.197, allocations: 7.906 kB / 487.7 MB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009642/1.198, allocations: 63.5 kB / 487.8 MB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.746e-05/1.198, allocations: 16 kB / 487.8 MB, free: 7.098 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004005/1.199, allocations: 121.3 kB / 487.9 MB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002856/1.199, allocations: 98.69 kB / 488 MB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002079/1.201, allocations: 0.6824 MB / 488.7 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/1.201, allocations: 4 kB / 488.7 MB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/1.201, allocations: 3.938 kB / 488.7 MB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/1.201, allocations: 3.984 kB / 488.7 MB, free: 6.176 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005083/1.206, allocations: 2.149 MB / 490.9 MB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/1.206, allocations: 4.031 kB / 490.9 MB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/1.208, allocations: 115.8 kB / 491 MB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.038e-05/1.208, allocations: 0 / 491 MB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.893e-05/1.208, allocations: 15.98 kB / 491 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/1.208, allocations: 0 / 491 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.208, allocations: 0 / 491 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002857/1.211, allocations: 1.152 MB / 492.1 MB, free: 2.672 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005346/1.216, allocations: 2.686 MB / 494.8 MB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009752/1.217, allocations: 243.6 kB / 495.1 MB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002841/1.217, allocations: 15.98 kB / 495.1 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001275/1.219, allocations: 31.97 kB / 495.1 MB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002408/1.219, allocations: 36.45 kB / 495.1 MB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/1.219, allocations: 23.92 kB / 495.2 MB, free: 15.59 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.004052/1.223, allocations: 0.8637 MB / 496 MB, free: 14.71 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003527/1.227, allocations: 270.8 kB / 496.3 MB, free: 14.45 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001731/1.228, allocations: 497 kB / 496.8 MB, free: 13.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00258/1.231, allocations: 0.6761 MB / 497.5 MB, free: 13.29 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/1.231, allocations: 0 / 497.5 MB, free: 13.29 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009245/1.232, allocations: 317.8 kB / 497.8 MB, free: 12.98 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/1.234, allocations: 192.1 kB / 498 MB, free: 12.79 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009163/1.243, allocations: 2.033 MB / 500 MB, free: 10.71 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003096/1.247, allocations: 1.456 MB / 0.4897 GB, free: 9.223 MB / 394.7 MB Notification: Performance of SimCode: time 2.545e-06/1.247, allocations: 0 / 0.4897 GB, free: 9.223 MB / 394.7 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/linux/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)