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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 97.88 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 215.7 kB / 23.03 MB, free: 4.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 207.7 MB / 233.9 MB, free: 9.785 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo): time 0.05457/0.05457, allocations: 7.142 MB / 293.3 MB, free: 14.47 MB / 238.1 MB " [Timeout remaining time 180] Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.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.002182/0.002182, allocations: 68.92 kB / 409.8 MB, free: 47.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07792/0.0801, allocations: 50.75 MB / 460.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.009131/0.08923, allocations: 6.001 MB / 466.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007195/0.09643, allocations: 4.198 MB / 470.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001361/0.09779, allocations: 39.81 kB / 470.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003035/0.1008, allocations: 1.007 MB / 471.8 MB, free: 2.852 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001391/0.1022, allocations: 401 kB / 472.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001455/0.1037, allocations: 0.6985 MB / 472.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003089/0.1068, allocations: 2.218 MB / 475.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.1079, allocations: 0.6519 MB / 475.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009807/0.1089, allocations: 0.7475 MB / 476.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00086/0.1097, allocations: 0.739 MB / 477.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003165/0.1101, allocations: 260 kB / 477.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004519/0.1105, allocations: 283.9 kB / 477.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004186/0.1109, allocations: 470.7 kB / 478.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007518/0.1117, allocations: 0.7039 MB / 479 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003225/0.1149, allocations: 3.084 MB / 482 MB, free: 8.562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1149, allocations: 0 / 482 MB, free: 8.562 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1149, allocations: 0 / 482 MB, free: 8.562 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.987e-05/0.1149, allocations: 0 / 482 MB, free: 8.562 MB / 350.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.003449/0.1184, allocations: 1.921 MB / 484 MB, free: 6.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1184, allocations: 11.98 kB / 484 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.286e-05/0.1185, allocations: 37.16 kB / 484 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000271/0.1188, allocations: 175 kB / 484.2 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002745/0.119, allocations: 179.8 kB / 484.4 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001997/0.121, allocations: 1.347 MB / 485.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.629e-05/0.1211, allocations: 86.25 kB / 485.8 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001837/0.1213, allocations: 108 kB / 485.9 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002498/0.1238, allocations: 1.476 MB / 487.4 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/0.1238, allocations: 4 kB / 487.4 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.1239, allocations: 40 kB / 487.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.53e-05/0.124, allocations: 28 kB / 487.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002003/0.126, allocations: 1.011 MB / 488.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007426/0.1334, allocations: 5.153 MB / 493.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.1351, allocations: 0.8469 MB / 494.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007877/0.1359, allocations: 390.6 kB / 494.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.588e-05/0.1359, allocations: 12.48 kB / 494.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008749/0.1368, allocations: 0.5145 MB / 495.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=60): time 2.364e-06/0.1368, allocations: 0 / 495.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.007783/0.1446, allocations: 3.157 MB / 498.5 MB, free: 7.656 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.1447, allocations: 166.8 kB / 498.7 MB, free: 7.457 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002225/0.1469, allocations: 1.473 MB / 0.4884 GB, free: 5.969 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.936e-05/0.147, allocations: 41.7 kB / 0.4885 GB, free: 5.922 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006707/0.1477, allocations: 0.661 MB / 0.4891 GB, free: 5.254 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002789/0.148, allocations: 281.6 kB / 0.4894 GB, free: 4.977 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003337/0.1483, allocations: 162.6 kB / 0.4895 GB, free: 4.809 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.1485, allocations: 341.9 kB / 0.4899 GB, free: 4.469 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008611/0.1493, allocations: 447.5 kB / 0.4903 GB, free: 4.027 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/0.1504, allocations: 0.7546 MB / 0.491 GB, free: 3.168 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005635/0.156, allocations: 2.17 MB / 0.4931 GB, free: 0.9141 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.156, allocations: 0 / 0.4931 GB, free: 0.9141 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002467/0.1585, allocations: 1.274 MB / 0.4944 GB, free: 15.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.143e-05/0.1586, allocations: 41.69 kB / 0.4944 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.1586, allocations: 4 kB / 0.4944 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.1586, allocations: 8 kB / 0.4944 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009311/0.1595, allocations: 215.7 kB / 0.4946 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.345e-05/0.1596, allocations: 19.92 kB / 0.4947 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006874/0.1602, allocations: 51.95 kB / 0.4947 GB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.666e-05/0.1603, allocations: 39.94 kB / 0.4948 GB, free: 15.24 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: $outputAlias_V:VARIABLE(unit = \"V\" fixed = true ) type: Real 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 (109): * Single equations (assignments): 108 * 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.0009127/0.1612, allocations: 0.5431 MB / 0.4953 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001906/0.1614, allocations: 119.2 kB / 0.4954 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002043/0.1635, allocations: 1.001 MB / 0.4964 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.1635, allocations: 12 kB / 0.4964 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1635, allocations: 0 / 0.4964 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.1635, allocations: 7.922 kB / 0.4964 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004627/0.1681, allocations: 2.627 MB / 0.499 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.1681, allocations: 0 / 0.499 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008267/0.169, allocations: 163.8 kB / 0.4991 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.056e-06/0.169, allocations: 7.984 kB / 0.4991 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.964e-05/0.169, allocations: 24 kB / 0.4991 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.212e-06/0.169, allocations: 7.938 kB / 0.4992 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.169, allocations: 8 kB / 0.4992 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002742/0.1718, allocations: 1.589 MB / 0.5007 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003568/0.1721, allocations: 167.2 kB / 0.5009 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001661/0.1723, allocations: 23.98 kB / 0.5009 GB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005467/0.1729, allocations: 55.95 kB / 0.5009 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.173, allocations: 52.5 kB / 0.501 GB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.723e-05/0.1731, allocations: 23.98 kB / 0.501 GB, free: 8.715 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001578/0.1746, allocations: 1.036 MB / 0.502 GB, free: 7.672 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1746, allocations: 0 / 0.502 GB, free: 7.672 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008066/0.1754, allocations: 227.9 kB / 0.5022 GB, free: 7.449 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 8 ($outputAlias_V,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].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 (75): * Single equations (assignments): 73 * 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.004607/0.18, allocations: 2.483 MB / 0.5047 GB, free: 4.934 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001929/0.182, allocations: 0.9969 MB / 0.5056 GB, free: 3.922 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.182, allocations: 0 / 0.5056 GB, free: 3.922 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008141/0.1828, allocations: 439.4 kB / 0.5061 GB, free: 3.488 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.1841, allocations: 284.7 kB / 0.5063 GB, free: 3.211 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02087/0.205, allocations: 12.89 MB / 0.5189 GB, free: 5.984 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000969/0.206, allocations: 0.8148 MB / 0.5197 GB, free: 5.137 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000724/0.2067, allocations: 212.4 kB / 0.5199 GB, free: 4.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008517/0.2075, allocations: 0.5188 MB / 0.5204 GB, free: 4.406 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.2075, allocations: 0 / 0.5204 GB, free: 4.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2262/0.4337, allocations: 31.66 MB / 0.5514 GB, free: 55.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.19/14.62, allocations: 15.86 kB / 0.5514 GB, free: 55.32 MB / 398.1 MB " [Timeout remaining time 645] (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 --stepSize=1 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.136026468942873] Failed to read output from testmodel.py, exit status != 0: 14.856821108027361 14.876381769 14.757583778 Calling exit ...