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.009035/0.009035, allocations: 176 kB / 15.12 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07192/0.07192, allocations: 7.043 MB / 22.9 MB, free: 4.484 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.637/1.637, allocations: 194.5 MB / 219.6 MB, free: 15.58 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.001665/0.001665, allocations: 120.6 kB / 266.4 MB, free: 0.6836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003444, allocations: 19.98 kB / 322.9 MB, free: 17.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0815/0.08186, allocations: 45.98 MB / 368.9 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2844/0.3663, allocations: 83.78 MB / 452.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.3665, allocations: 88.64 kB / 452.8 MB, free: 13.91 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.04583/0.4124, allocations: 18.48 MB / 471.3 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4124, allocations: 0 / 471.3 MB, free: 14.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.777e-05/0.4125, allocations: 16 kB / 471.3 MB, free: 14.16 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.002485/0.415, allocations: 1.343 MB / 472.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.415, allocations: 8.031 kB / 472.6 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002117/0.4152, allocations: 120.4 kB / 472.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001892/0.4154, allocations: 102.8 kB / 472.8 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009705/0.4164, allocations: 0.6214 MB / 473.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.048e-05/0.4165, allocations: 54 kB / 473.5 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.4166, allocations: 79.89 kB / 473.6 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/0.4182, allocations: 0.8024 MB / 474.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.4183, allocations: 4 kB / 474.4 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.191e-05/0.4184, allocations: 27.98 kB / 474.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.4184, allocations: 16 kB / 474.4 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001763/0.4202, allocations: 0.6871 MB / 475.1 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004349/0.4245, allocations: 2.535 MB / 477.7 MB, free: 7.531 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00163/0.4262, allocations: 0.6279 MB / 478.3 MB, free: 6.891 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.4262, allocations: 4 kB / 478.3 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009902/0.4272, allocations: 451.7 kB / 478.7 MB, free: 6.426 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 2.585e-06/0.4272, allocations: 0 / 478.7 MB, free: 6.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.002665/0.4299, allocations: 1.049 MB / 479.8 MB, free: 5.348 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.505e-05/0.43, allocations: 144.5 kB / 479.9 MB, free: 5.176 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.4311, allocations: 0.7457 MB / 480.7 MB, free: 4.422 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.401e-05/0.4312, allocations: 45.69 kB / 480.7 MB, free: 4.371 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003618/0.4315, allocations: 423.8 kB / 481.1 MB, free: 3.953 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.4317, allocations: 146 kB / 481.3 MB, free: 3.809 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.6e-05/0.4317, allocations: 12 kB / 481.3 MB, free: 3.797 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.4319, allocations: 382.8 kB / 481.7 MB, free: 3.414 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008135/0.4327, allocations: 325.1 kB / 482 MB, free: 3.098 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008536/0.4336, allocations: 415.5 kB / 482.4 MB, free: 2.656 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008617/0.4345, allocations: 485.2 kB / 482.9 MB, free: 2.148 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4345, allocations: 4 kB / 482.9 MB, free: 2.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002147/0.4366, allocations: 1.057 MB / 483.9 MB, free: 1.039 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/0.4368, allocations: 178.1 kB / 484.1 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.4368, allocations: 0 / 484.1 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002129/0.437, allocations: 48.84 kB / 484.1 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005656/0.4376, allocations: 143.7 kB / 484.3 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/0.439, allocations: 1.549 MB / 485.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007702/0.4398, allocations: 119.5 kB / 485.9 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.975e-05/0.4399, allocations: 24 kB / 486 MB, free: 14.81 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 () * Number of clocked 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.0005946/0.4405, allocations: 297.8 kB / 486.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.4407, allocations: 79.05 kB / 486.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001778/0.4424, allocations: 0.6966 MB / 487 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4425, allocations: 4 kB / 487 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.4425, allocations: 0 / 487 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.4425, allocations: 7.984 kB / 487 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002713/0.4452, allocations: 1.549 MB / 488.6 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4452, allocations: 0 / 488.6 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000445/0.4457, allocations: 87.94 kB / 488.7 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001468/0.4458, allocations: 44.83 kB / 488.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.364e-05/0.4459, allocations: 12 kB / 488.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001344/0.4472, allocations: 1.553 MB / 490.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.4473, allocations: 7.922 kB / 490.3 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002518/0.4498, allocations: 1.098 MB / 491.4 MB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002914/0.4501, allocations: 196 kB / 491.6 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.4502, allocations: 12 kB / 491.6 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006037/0.4508, allocations: 87.91 kB / 491.7 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002294/0.4511, allocations: 75.89 kB / 491.8 MB, free: 8.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.906e-05/0.4511, allocations: 19.98 kB / 491.8 MB, free: 8.738 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008451/0.452, allocations: 0.5771 MB / 492.4 MB, free: 8.168 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.452, allocations: 0 / 492.4 MB, free: 8.168 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008195/0.4528, allocations: 199.4 kB / 492.5 MB, free: 7.973 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) * Number of clocked states: 0 () * 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.003433/0.4563, allocations: 1.944 MB / 494.5 MB, free: 6.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002086/0.4584, allocations: 1.139 MB / 495.6 MB, free: 4.793 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4584, allocations: 3.938 kB / 495.6 MB, free: 4.789 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009383/0.4593, allocations: 466.6 kB / 496.1 MB, free: 4.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007585/0.4601, allocations: 154.6 kB / 496.2 MB, free: 4.168 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003996/0.4641, allocations: 3.147 MB / 499.4 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006151/0.4647, allocations: 0.9881 MB / 0.4886 GB, free: 15.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003819/0.4651, allocations: 76.86 kB / 0.4887 GB, free: 15.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004429/0.4656, allocations: 299.3 kB / 0.489 GB, free: 15.55 MB / 378.7 MB Notification: Performance of SimCode: time 8.81e-07/0.4656, allocations: 0 / 0.489 GB, free: 15.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03756/0.5032, allocations: 17.69 MB / 0.5063 GB, free: 13.83 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000216/0.5034, allocations: 260.2 kB / 0.5065 GB, free: 13.47 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.493/2.996, allocations: 4 kB / 0.5065 GB, free: 13.47 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)