Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.Impedance,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.Impedance,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002065/0.002066, allocations: 192.9 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.884/1.884, allocations: 205.1 MB / 222.1 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07383/0.07383, allocations: 7.038 MB / 276.5 MB, free: 14.39 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.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.001577/0.001577, allocations: 79.11 kB / 335.5 MB, free: 27.31 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1267, allocations: 48.09 MB / 383.6 MB, free: 11.14 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.007055/0.1338, allocations: 4.685 MB / 388.3 MB, free: 6.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003358/0.1372, allocations: 1.862 MB / 390.1 MB, free: 4.551 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005337/0.1378, allocations: 23.94 kB / 390.2 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.1389, allocations: 298.5 kB / 390.5 MB, free: 4.234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005424/0.1394, allocations: 198.8 kB / 390.7 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007301/0.1402, allocations: 327.8 kB / 391 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002757/0.1429, allocations: 2.629 MB / 393.6 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001962/0.1449, allocations: 1.548 MB / 395.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.146, allocations: 0.876 MB / 396 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009815/0.147, allocations: 0.926 MB / 397 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000356/0.1474, allocations: 328 kB / 397.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003528/0.1478, allocations: 332 kB / 397.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004624/0.1482, allocations: 0.5377 MB / 398.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00115/0.1494, allocations: 1.121 MB / 399.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003519/0.1529, allocations: 3.779 MB / 403 MB, free: 7.582 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.1529, allocations: 0 / 403 MB, free: 7.582 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.1529, allocations: 4 kB / 403 MB, free: 7.578 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.592e-05/0.153, allocations: 3.938 kB / 403 MB, free: 7.574 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 312 * Number of variables: 312 Notification: Performance of Generate backend data structure: time 0.004613/0.1576, allocations: 2.241 MB / 405.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.355e-05/0.1577, allocations: 16.03 kB / 405.3 MB, free: 5.254 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003923/0.1581, allocations: 212.4 kB / 405.5 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000361/0.1585, allocations: 190.7 kB / 405.7 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002506/0.161, allocations: 1.699 MB / 407.4 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.01e-05/0.1611, allocations: 98.84 kB / 407.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002105/0.1613, allocations: 132.3 kB / 407.6 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003163/0.1645, allocations: 1.839 MB / 409.5 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.387e-05/0.1645, allocations: 0 / 409.5 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001419/0.1647, allocations: 52 kB / 409.5 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.058e-05/0.1647, allocations: 36 kB / 409.5 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002733/0.1674, allocations: 1.52 MB / 411.1 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01049/0.1779, allocations: 7.137 MB / 418.2 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003314/0.1813, allocations: 2.977 MB / 421.2 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009176/0.1822, allocations: 0.5348 MB / 421.7 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.257e-05/0.1823, allocations: 12.56 kB / 421.7 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000924/0.1832, allocations: 0.5472 MB / 422.3 MB, free: 3.539 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 4.849e-06/0.1832, allocations: 0 / 422.3 MB, free: 3.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.002355/0.1856, allocations: 1.255 MB / 423.5 MB, free: 2.277 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.1857, allocations: 166.8 kB / 423.7 MB, free: 2.074 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002869/0.1886, allocations: 1.976 MB / 425.7 MB, free: 88 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.734e-05/0.1887, allocations: 41.7 kB / 425.7 MB, free: 40 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2464/0.4351, allocations: 0.7083 MB / 426.4 MB, free: 45.74 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005027/0.4357, allocations: 208.7 kB / 426.6 MB, free: 45.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004463/0.4361, allocations: 155.5 kB / 426.8 MB, free: 45.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.4363, allocations: 340.5 kB / 427.1 MB, free: 45.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.4374, allocations: 433.6 kB / 427.5 MB, free: 45.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000962/0.4384, allocations: 0.6532 MB / 428.2 MB, free: 44.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004656/0.4431, allocations: 1.964 MB / 430.1 MB, free: 43.96 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.155e-05/0.4431, allocations: 2.594 kB / 430.1 MB, free: 43.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002704/0.4458, allocations: 1.291 MB / 431.4 MB, free: 43.37 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.579e-05/0.4459, allocations: 38.41 kB / 431.5 MB, free: 43.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.4459, allocations: 5.984 kB / 431.5 MB, free: 43.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.67e-05/0.446, allocations: 10.91 kB / 431.5 MB, free: 43.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009474/0.4469, allocations: 217.8 kB / 431.7 MB, free: 43.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.577e-05/0.4469, allocations: 18.64 kB / 431.7 MB, free: 43.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007588/0.4477, allocations: 142 kB / 431.9 MB, free: 43.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.184e-05/0.4478, allocations: 32.78 kB / 431.9 MB, free: 43.23 MB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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,rCseriesLinear.rs.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[3].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[2].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * 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.001344/0.4491, allocations: 0.7315 MB / 432.6 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.4494, allocations: 137.2 kB / 432.8 MB, free: 42.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002029/0.4514, allocations: 0.9958 MB / 433.7 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-05/0.4515, allocations: 6.719 kB / 433.8 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.4515, allocations: 4.125 kB / 433.8 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.4515, allocations: 2.812 kB / 433.8 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005306/0.4568, allocations: 3.027 MB / 436.8 MB, free: 40.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.4568, allocations: 5.656 kB / 436.8 MB, free: 40.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009715/0.4578, allocations: 171.1 kB / 437 MB, free: 40.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.277e-05/0.4578, allocations: 2.219 kB / 437 MB, free: 40.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.961e-05/0.4579, allocations: 24 kB / 437 MB, free: 40.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.658e-06/0.4579, allocations: 2.75 kB / 437 MB, free: 40.74 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.4579, allocations: 3.938 kB / 437 MB, free: 40.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00232/0.4603, allocations: 1.57 MB / 438.6 MB, free: 39.97 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000467/0.4607, allocations: 300 kB / 438.9 MB, free: 39.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.4609, allocations: 23.94 kB / 438.9 MB, free: 39.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005431/0.4615, allocations: 49.78 kB / 438.9 MB, free: 39.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.4616, allocations: 46.73 kB / 439 MB, free: 39.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.921e-05/0.4617, allocations: 23.53 kB / 439 MB, free: 39.69 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002172/0.4639, allocations: 1.415 MB / 440.4 MB, free: 39.11 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4639, allocations: 0 / 440.4 MB, free: 39.11 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001128/0.465, allocations: 295.5 kB / 440.7 MB, free: 39.05 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[2].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[3].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rs.impedanceValue.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 (62): * Single equations (assignments): 60 * 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.002329/0.4674, allocations: 2.151 MB / 442.9 MB, free: 37.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002458/0.4698, allocations: 1.173 MB / 444 MB, free: 37.21 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.4698, allocations: 0.9062 kB / 444 MB, free: 37.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006499/0.4705, allocations: 429.5 kB / 444.4 MB, free: 37 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/0.4719, allocations: 326.3 kB / 444.8 MB, free: 36.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03311/0.505, allocations: 18.61 MB / 463.4 MB, free: 18.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009306/0.506, allocations: 1.697 MB / 465.1 MB, free: 16.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009865/0.507, allocations: 353.7 kB / 465.4 MB, free: 16.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007618/0.5078, allocations: 0.5461 MB / 466 MB, free: 15.5 MB / 318.1 MB Notification: Performance of SimCode: time 1.303e-06/0.5078, allocations: 0 / 466 MB, free: 15.5 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06037/0.5682, allocations: 34.71 MB / 0.4889 GB, free: 12.71 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/0.5684, allocations: 208.2 kB / 0.4891 GB, free: 12.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.065/3.634, allocations: 0 / 0.4891 GB, free: 12.45 MB / 350.1 MB (rm -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe ; mkfifo ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe ; head -c 1048576 < ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe >> ../files/ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1)