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.001245/0.001245, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001262/0.001262, allocations: 197.7 kB / 16.14 MB, free: 6.602 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.233/1.233, allocations: 205.1 MB / 222 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.2127/0.2127, allocations: 7.038 MB / 276.4 MB, free: 14.42 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.001413/0.001413, allocations: 63.91 kB / 335.3 MB, free: 27.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07678/0.07821, allocations: 48.11 MB / 383.4 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005549/0.0838, allocations: 4.681 MB / 388.1 MB, free: 6.535 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00267/0.0865, allocations: 1.866 MB / 390 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002994/0.08685, allocations: 15.94 kB / 390 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007524/0.08761, allocations: 306.5 kB / 390.3 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00042/0.08804, allocations: 202.7 kB / 390.5 MB, free: 4.141 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004973/0.08855, allocations: 315.8 kB / 390.8 MB, free: 3.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00199/0.09055, allocations: 2.366 MB / 393.2 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001534/0.09209, allocations: 1.426 MB / 394.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006638/0.09277, allocations: 0.6182 MB / 395.2 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007102/0.09349, allocations: 0.7658 MB / 396 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001737/0.09367, allocations: 128 kB / 396.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002006/0.09388, allocations: 131.9 kB / 396.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002538/0.09414, allocations: 330.6 kB / 396.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007972/0.09494, allocations: 0.9057 MB / 397.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002608/0.09756, allocations: 3.631 MB / 401.1 MB, free: 9.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.09757, allocations: 3.938 kB / 401.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.09758, allocations: 8 kB / 401.1 MB, free: 9.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.854e-05/0.09763, allocations: 0 / 401.1 MB, free: 9.461 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.003887/0.1015, allocations: 2.249 MB / 403.3 MB, free: 7.148 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.1016, allocations: 8.031 kB / 403.3 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003131/0.1019, allocations: 208.5 kB / 403.5 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002799/0.1022, allocations: 186.7 kB / 403.7 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002094/0.1043, allocations: 1.703 MB / 405.4 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.843e-05/0.1044, allocations: 102.8 kB / 405.5 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001903/0.1046, allocations: 136.3 kB / 405.7 MB, free: 4.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002874/0.1075, allocations: 1.831 MB / 407.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.049e-05/0.1075, allocations: 4 kB / 407.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001187/0.1076, allocations: 56 kB / 407.6 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/0.1077, allocations: 28 kB / 407.6 MB, free: 2.758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002461/0.1101, allocations: 1.52 MB / 409.1 MB, free: 1.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009034/0.1192, allocations: 7.137 MB / 416.2 MB, free: 9.949 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003425/0.1226, allocations: 2.981 MB / 419.2 MB, free: 6.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.1237, allocations: 0.5461 MB / 419.8 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.573e-05/0.1238, allocations: 8.547 kB / 419.8 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000968/0.1248, allocations: 0.5472 MB / 420.3 MB, free: 5.418 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 3.427e-06/0.1248, allocations: 0 / 420.3 MB, free: 5.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.00231/0.1271, allocations: 1.258 MB / 421.6 MB, free: 4.152 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.1272, allocations: 170.8 kB / 421.7 MB, free: 3.945 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002763/0.13, allocations: 1.968 MB / 423.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.022e-05/0.1301, allocations: 41.7 kB / 423.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006541/0.1307, allocations: 0.7121 MB / 424.5 MB, free: 1.195 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001819/0.1309, allocations: 209 kB / 424.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002584/0.1312, allocations: 150.6 kB / 424.8 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1313, allocations: 342 kB / 425.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006777/0.132, allocations: 433.8 kB / 425.6 MB, free: 72 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.13/0.262, allocations: 0.6485 MB / 426.2 MB, free: 44.72 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003884/0.2659, allocations: 1.965 MB / 428.2 MB, free: 44.42 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/0.2659, allocations: 1.062 kB / 428.2 MB, free: 44.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002014/0.2679, allocations: 1.299 MB / 429.5 MB, free: 43.92 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/0.268, allocations: 34.88 kB / 429.5 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.268, allocations: 5.953 kB / 429.5 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.596e-05/0.268, allocations: 9.594 kB / 429.5 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008385/0.2689, allocations: 226.2 kB / 429.8 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/0.2689, allocations: 14.47 kB / 429.8 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007184/0.2696, allocations: 129.9 kB / 429.9 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.017e-05/0.2697, allocations: 28.08 kB / 429.9 MB, free: 43.85 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.0009167/0.2706, allocations: 0.7435 MB / 430.7 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/0.2708, allocations: 137.3 kB / 430.8 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001463/0.2723, allocations: 0.9961 MB / 431.8 MB, free: 43.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.2723, allocations: 6.219 kB / 431.8 MB, free: 43.01 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.2723, allocations: 2.344 kB / 431.8 MB, free: 43.01 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.2723, allocations: 3.094 kB / 431.8 MB, free: 43.01 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003734/0.276, allocations: 3.034 MB / 434.8 MB, free: 41.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.2761, allocations: 5.25 kB / 434.9 MB, free: 41.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000763/0.2768, allocations: 167.1 kB / 435 MB, free: 41.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.2768, allocations: 2.938 kB / 435 MB, free: 41.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.806e-05/0.2769, allocations: 22.94 kB / 435 MB, free: 41.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.2769, allocations: 2.062 kB / 435 MB, free: 41.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2769, allocations: 1.844 kB / 435 MB, free: 41.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002138/0.2791, allocations: 1.569 MB / 436.6 MB, free: 40.72 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003175/0.2794, allocations: 303.3 kB / 436.9 MB, free: 40.49 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000159/0.2796, allocations: 22.84 kB / 436.9 MB, free: 40.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000493/0.2801, allocations: 51.78 kB / 437 MB, free: 40.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.2802, allocations: 47.97 kB / 437 MB, free: 40.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.193e-05/0.2802, allocations: 20.33 kB / 437 MB, free: 40.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001656/0.2819, allocations: 1.41 MB / 438.5 MB, free: 39.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2819, allocations: 0 / 438.5 MB, free: 39.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007791/0.2827, allocations: 297.9 kB / 438.8 MB, free: 39.82 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.002005/0.2847, allocations: 2.167 MB / 440.9 MB, free: 38.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.2859, allocations: 0.9828 MB / 441.9 MB, free: 38.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.286, allocations: 0 / 441.9 MB, free: 38.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005202/0.2865, allocations: 430.4 kB / 442.3 MB, free: 37.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.2876, allocations: 312.5 kB / 442.6 MB, free: 37.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02758/0.3152, allocations: 18.6 MB / 461.2 MB, free: 19.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007353/0.316, allocations: 1.697 MB / 462.9 MB, free: 18.16 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007522/0.3167, allocations: 347.8 kB / 463.3 MB, free: 17.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006068/0.3173, allocations: 0.5423 MB / 463.8 MB, free: 17.28 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3173, allocations: 0 / 463.8 MB, free: 17.28 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.675/3.993, allocations: 34.02 MB / 497.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000207/3.993, allocations: 200 kB / 498 MB, free: 14.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.311/7.304, allocations: 3.938 kB / 498 MB, free: 14.91 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)