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"}) [: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.005635/0.005635, allocations: 183.5 kB / 7.459 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.1208/0.1208, allocations: 7.038 MB / 14.91 MB, free: 248 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.222/3.222, allocations: 194.2 MB / 211 MB, free: 15.46 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.002451/0.002451, allocations: 128.1 kB / 257.5 MB, free: 320 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2191/0.2217, allocations: 52.1 MB / 309.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5667/0.7884, allocations: 45.97 MB / 355.6 MB, free: 47.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1788/0.9673, allocations: 82.96 MB / 438.5 MB, free: 8.621 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004569/0.9679, allocations: 80.95 kB / 438.6 MB, free: 8.543 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: 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.06503/1.033, allocations: 19.21 MB / 457.8 MB, free: 5.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.767e-05/1.033, allocations: 11.94 kB / 457.8 MB, free: 5.418 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006177/1.034, allocations: 110.7 kB / 457.9 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001742/1.035, allocations: 0.6129 MB / 458.5 MB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.223e-05/1.035, allocations: 32 kB / 458.6 MB, free: 4.621 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/1.036, allocations: 41.22 kB / 458.6 MB, free: 4.582 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001116/1.037, allocations: 457.3 kB / 459.1 MB, free: 4.137 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/1.038, allocations: 0.5752 MB / 459.6 MB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/1.038, allocations: 0 / 459.6 MB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-05/1.038, allocations: 7.984 kB / 459.6 MB, free: 3.539 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.482e-05/1.038, allocations: 16 kB / 459.7 MB, free: 3.523 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005111/1.043, allocations: 2.399 MB / 462.1 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008169/1.044, allocations: 367.3 kB / 462.4 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003222/1.044, allocations: 169.7 kB / 462.6 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.162e-05/1.044, allocations: 4 kB / 462.6 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004913/1.045, allocations: 280.4 kB / 462.9 MB, free: 232 kB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 3.086e-06/1.045, allocations: 0 / 462.9 MB, free: 232 kB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.001042/1.046, allocations: 401.9 kB / 463.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/1.046, allocations: 149.5 kB / 463.4 MB, free: 15.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/1.047, allocations: 0.6558 MB / 464 MB, free: 14.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.29e-05/1.047, allocations: 41.64 kB / 464.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003343/1.048, allocations: 319.6 kB / 464.4 MB, free: 14.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/1.048, allocations: 142 kB / 464.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/1.048, allocations: 0 / 464.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002518/1.048, allocations: 382.8 kB / 464.9 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000414/1.049, allocations: 201.3 kB / 465.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005217/1.049, allocations: 294.5 kB / 465.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004347/1.05, allocations: 203.1 kB / 465.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/1.05, allocations: 0 / 465.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001284/1.051, allocations: 0.5997 MB / 466.2 MB, free: 12.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/1.051, allocations: 4 kB / 466.2 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/1.051, allocations: 11.92 kB / 466.2 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002861/1.051, allocations: 42.22 kB / 466.3 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006131/1.052, allocations: 132 kB / 466.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/1.054, allocations: 1.472 MB / 467.9 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000794/1.054, allocations: 111.5 kB / 468 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.373e-05/1.054, allocations: 28.05 kB / 468 MB, free: 10.88 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.0002891/1.055, allocations: 139.2 kB / 468.1 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/1.055, allocations: 75.09 kB / 468.2 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000921/1.056, allocations: 444.9 kB / 468.6 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/1.056, allocations: 4 kB / 468.6 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/1.056, allocations: 0 / 468.6 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/1.056, allocations: 5.391 kB / 468.6 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002149/1.058, allocations: 1.186 MB / 469.8 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/1.058, allocations: 0 / 469.8 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005555/1.059, allocations: 106 kB / 469.9 MB, free: 8.867 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001645/1.059, allocations: 44.84 kB / 470 MB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.764e-05/1.059, allocations: 3.984 kB / 470 MB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001504/1.06, allocations: 1.457 MB / 471.4 MB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/1.06, allocations: 8.094 kB / 471.4 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001403/1.062, allocations: 0.743 MB / 472.2 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003125/1.065, allocations: 1.793 MB / 474 MB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003061/1.065, allocations: 172.2 kB / 474.1 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/1.065, allocations: 8.25 kB / 474.2 MB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007117/1.066, allocations: 91.91 kB / 474.2 MB, free: 4.379 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003194/1.066, allocations: 79.89 kB / 474.3 MB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.505e-05/1.067, allocations: 15.98 kB / 474.3 MB, free: 4.285 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001029/1.068, allocations: 0.5007 MB / 474.8 MB, free: 3.793 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001673/1.069, allocations: 199.2 kB / 475 MB, free: 3.598 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.001228/1.071, allocations: 348.1 kB / 475.4 MB, free: 3.316 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00157/1.072, allocations: 0.7134 MB / 476.1 MB, free: 2.555 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/1.072, allocations: 0 / 476.1 MB, free: 2.555 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000623/1.073, allocations: 322.1 kB / 476.4 MB, free: 2.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000873/1.074, allocations: 119.2 kB / 476.5 MB, free: 2.109 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003564/1.077, allocations: 1.033 MB / 477.6 MB, free: 1.047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/1.079, allocations: 1.03 MB / 478.6 MB, free: 15.98 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/1.079, allocations: 0 / 478.6 MB, free: 15.98 MB / 378.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)