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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001249/0.001249, allocations: 181.9 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05244/0.05244, allocations: 7.034 MB / 20.3 MB, free: 4.398 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.259/1.259, allocations: 194.3 MB / 216.6 MB, free: 10.86 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.001601/0.001601, allocations: 114 kB / 263.1 MB, free: 13.39 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.899e-05/2.901e-05, allocations: 4 kB / 317.1 MB, free: 7.387 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2362, allocations: 45.98 MB / 363.1 MB, free: 46.89 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09241/0.3286, allocations: 83.69 MB / 446.8 MB, free: 3.781 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/0.3289, allocations: 79.97 kB / 446.8 MB, free: 3.703 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: Performance of FrontEnd - DAE generated: time 0.0433/0.3722, allocations: 18.46 MB / 465.3 MB, free: 1.352 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3722, allocations: 0 / 465.3 MB, free: 1.352 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.374e-05/0.3723, allocations: 19.94 kB / 465.3 MB, free: 1.332 MB / 346.7 MB 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.00214/0.3744, allocations: 1.215 MB / 466.5 MB, free: 24 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.3745, allocations: 12.03 kB / 466.6 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002085/0.3747, allocations: 120.4 kB / 466.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.3749, allocations: 106.8 kB / 466.8 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009002/0.3758, allocations: 0.6137 MB / 467.4 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.133e-05/0.3758, allocations: 53.98 kB / 467.4 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.376, allocations: 79.91 kB / 467.5 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.3771, allocations: 0.6932 MB / 468.2 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.3772, allocations: 0 / 468.2 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.214e-05/0.3772, allocations: 28 kB / 468.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.3773, allocations: 16 kB / 468.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008488/0.3781, allocations: 496 kB / 468.7 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00398/0.3821, allocations: 2.531 MB / 471.3 MB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007897/0.3829, allocations: 437.3 kB / 471.7 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002722/0.3832, allocations: 184.7 kB / 471.9 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.3832, allocations: 7.688 kB / 471.9 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005022/0.3838, allocations: 340.1 kB / 472.2 MB, free: 10.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 2.425e-06/0.3838, allocations: 0 / 472.2 MB, free: 10.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.000799/0.3846, allocations: 477.4 kB / 472.7 MB, free: 9.695 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.348e-05/0.3847, allocations: 140.5 kB / 472.8 MB, free: 9.527 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008889/0.3856, allocations: 0.7419 MB / 473.6 MB, free: 8.777 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.3856, allocations: 41.7 kB / 473.6 MB, free: 8.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002798/0.3859, allocations: 423.9 kB / 474 MB, free: 8.312 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.386, allocations: 146 kB / 474.2 MB, free: 8.168 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.542e-05/0.3861, allocations: 12 kB / 474.2 MB, free: 8.156 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3862, allocations: 386.8 kB / 474.6 MB, free: 7.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003606/0.3866, allocations: 225.5 kB / 474.8 MB, free: 7.547 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004191/0.387, allocations: 304.9 kB / 475.1 MB, free: 7.215 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004224/0.3874, allocations: 392 kB / 475.5 MB, free: 6.801 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3875, allocations: 0 / 475.5 MB, free: 6.801 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001123/0.3886, allocations: 0.8409 MB / 476.3 MB, free: 5.914 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.3887, allocations: 174.4 kB / 476.5 MB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3887, allocations: 7.938 kB / 476.5 MB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002031/0.3889, allocations: 56.78 kB / 476.5 MB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005277/0.3895, allocations: 123.9 kB / 476.6 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/0.3907, allocations: 1.55 MB / 478.2 MB, free: 3.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006393/0.3914, allocations: 127.4 kB / 478.3 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.016e-05/0.3914, allocations: 27.98 kB / 478.3 MB, free: 3.684 MB / 362.7 MB 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.0001498/0.3916, allocations: 152.8 kB / 478.5 MB, free: 3.527 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.15e-05/0.3917, allocations: 71.19 kB / 478.6 MB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008233/0.3925, allocations: 0.4974 MB / 479.1 MB, free: 2.945 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.3925, allocations: 9.875 kB / 479.1 MB, free: 2.938 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.3925, allocations: 0 / 479.1 MB, free: 2.938 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.3925, allocations: 11.98 kB / 479.1 MB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001576/0.3941, allocations: 1.338 MB / 480.4 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3941, allocations: 0 / 480.4 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004342/0.3946, allocations: 95.92 kB / 480.5 MB, free: 1.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001171/0.3947, allocations: 44.78 kB / 480.6 MB, free: 1.387 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.829e-05/0.3948, allocations: 11.98 kB / 480.6 MB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.3959, allocations: 1.541 MB / 482.1 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3959, allocations: 0 / 482.1 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.3969, allocations: 0.7938 MB / 482.9 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001881/0.3971, allocations: 188 kB / 483.1 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.613e-05/0.3972, allocations: 16.12 kB / 483.1 MB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005632/0.3978, allocations: 87.91 kB / 483.2 MB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001956/0.398, allocations: 79.89 kB / 483.3 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-05/0.398, allocations: 19.92 kB / 483.3 MB, free: 14.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006734/0.3987, allocations: 0.5695 MB / 483.9 MB, free: 13.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3987, allocations: 0 / 483.9 MB, free: 13.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000646/0.3993, allocations: 203.4 kB / 484.1 MB, free: 13.72 MB / 378.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.001951/0.4013, allocations: 1.623 MB / 485.7 MB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.4024, allocations: 0.9321 MB / 486.6 MB, free: 11.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4024, allocations: 0 / 486.6 MB, free: 11.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004359/0.4029, allocations: 354.7 kB / 487 MB, free: 10.74 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/0.4036, allocations: 146.8 kB / 487.1 MB, free: 10.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.4058, allocations: 1.204 MB / 488.3 MB, free: 9.355 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.4062, allocations: 0.9825 MB / 489.3 MB, free: 8.344 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003228/0.4066, allocations: 72.88 kB / 489.4 MB, free: 8.273 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003858/0.407, allocations: 299.3 kB / 489.7 MB, free: 7.98 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.407, allocations: 0 / 489.7 MB, free: 7.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03223/0.4392, allocations: 18.06 MB / 0.4958 GB, free: 5.887 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/0.4395, allocations: 226.7 kB / 0.496 GB, free: 5.582 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.321/2.76, allocations: 0 / 0.496 GB, free: 5.582 MB / 394.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)