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/Complex 4.0.0+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.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 180.9 kB / 15.45 MB, free: 0.6523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05202/0.05202, allocations: 7.045 MB / 23.24 MB, free: 52 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.683/1.683, allocations: 205.4 MB / 230.9 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008017/0.0008013, allocations: 83.78 kB / 280.7 MB, free: 10.51 MB / 238.1 MB 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: 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: Performance of FrontEnd - loaded program: time 0.0005908/0.0005908, allocations: 23.78 kB / 340.6 MB, free: 26.64 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1079, allocations: 49.07 MB / 389.7 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004979/0.1129, allocations: 4.252 MB / 393.9 MB, free: 5.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00276/0.1157, allocations: 1.637 MB / 395.6 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003641/0.1161, allocations: 15.94 kB / 395.6 MB, free: 3.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007562/0.1169, allocations: 302.5 kB / 395.9 MB, free: 3.234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004853/0.1174, allocations: 210.7 kB / 396.1 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006019/0.118, allocations: 319.8 kB / 396.4 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002206/0.1202, allocations: 2.361 MB / 398.8 MB, free: 356 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001664/0.1219, allocations: 1.41 MB / 400.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006369/0.1225, allocations: 0.5284 MB / 400.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006953/0.1232, allocations: 0.6449 MB / 401.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001311/0.1234, allocations: 88 kB / 401.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001516/0.1235, allocations: 88 kB / 401.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002298/0.1238, allocations: 274.6 kB / 401.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000791/0.1246, allocations: 0.841 MB / 402.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003036/0.1276, allocations: 3.501 MB / 406.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.1276, allocations: 4 kB / 406.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.1276, allocations: 4 kB / 406.1 MB, free: 8.895 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.743e-05/0.1277, allocations: 0 / 406.1 MB, free: 8.895 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.003962/0.1317, allocations: 1.867 MB / 408 MB, free: 6.965 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.999e-05/0.1317, allocations: 8.031 kB / 408 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003857/0.1321, allocations: 216.3 kB / 408.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003051/0.1325, allocations: 190.6 kB / 408.4 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002384/0.1348, allocations: 1.706 MB / 410.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.103e-05/0.1349, allocations: 102.8 kB / 410.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002372/0.1352, allocations: 128.4 kB / 410.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003325/0.1385, allocations: 1.835 MB / 412.2 MB, free: 2.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.773e-05/0.1386, allocations: 7.938 kB / 412.2 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/0.1387, allocations: 52 kB / 412.2 MB, free: 2.586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.085e-05/0.1388, allocations: 36 kB / 412.3 MB, free: 2.551 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002898/0.1417, allocations: 1.52 MB / 413.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009791/0.1515, allocations: 7.18 MB / 421 MB, free: 9.703 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003391/0.1549, allocations: 2.977 MB / 424 MB, free: 6.305 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009134/0.1558, allocations: 0.554 MB / 424.5 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.1559, allocations: 4.562 kB / 424.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008903/0.1568, allocations: 0.5627 MB / 425.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 1.923e-06/0.1568, allocations: 0 / 425.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.002223/0.159, allocations: 1.263 MB / 426.3 MB, free: 3.887 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.1592, allocations: 166.8 kB / 426.5 MB, free: 3.684 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002904/0.1621, allocations: 1.972 MB / 428.5 MB, free: 1.699 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.1622, allocations: 41.7 kB / 428.5 MB, free: 1.652 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008126/0.163, allocations: 0.7198 MB / 429.2 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002735/0.1633, allocations: 209 kB / 429.4 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.1634, allocations: 73.69 kB / 429.5 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1636, allocations: 341.9 kB / 429.8 MB, free: 304 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2134/0.377, allocations: 433.3 kB / 430.3 MB, free: 37.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.3783, allocations: 0.6563 MB / 430.9 MB, free: 36.85 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004288/0.3826, allocations: 2.013 MB / 432.9 MB, free: 36.55 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.705e-06/0.3826, allocations: 2.188 kB / 432.9 MB, free: 36.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002564/0.3852, allocations: 1.299 MB / 434.2 MB, free: 36.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.177e-05/0.3852, allocations: 38.19 kB / 434.3 MB, free: 36.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.3853, allocations: 11.39 kB / 434.3 MB, free: 36.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.611e-05/0.3853, allocations: 9.531 kB / 434.3 MB, free: 36.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009295/0.3862, allocations: 230.8 kB / 434.5 MB, free: 36.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.423e-05/0.3863, allocations: 14.16 kB / 434.5 MB, free: 36.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008861/0.3872, allocations: 147.9 kB / 434.7 MB, free: 36.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.481e-05/0.3873, allocations: 33.08 kB / 434.7 MB, free: 36.43 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.00134/0.3886, allocations: 0.7439 MB / 435.5 MB, free: 36.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002718/0.3889, allocations: 134.7 kB / 435.6 MB, free: 36.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001836/0.3907, allocations: 1.001 MB / 436.6 MB, free: 36.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.3907, allocations: 12.61 kB / 436.6 MB, free: 36.24 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3908, allocations: 3.188 kB / 436.6 MB, free: 36.24 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.3908, allocations: 3.234 kB / 436.6 MB, free: 36.24 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004503/0.3953, allocations: 3.039 MB / 439.6 MB, free: 35.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.3953, allocations: 0.6094 kB / 439.6 MB, free: 35.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008212/0.3961, allocations: 182.1 kB / 439.8 MB, free: 35.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.3962, allocations: 2.75 kB / 439.8 MB, free: 35.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.063e-05/0.3962, allocations: 22.7 kB / 439.9 MB, free: 35.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.3962, allocations: 3.062 kB / 439.9 MB, free: 35.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3962, allocations: 0.7656 kB / 439.9 MB, free: 35.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002402/0.3987, allocations: 1.589 MB / 441.4 MB, free: 34.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004412/0.3991, allocations: 304.6 kB / 441.7 MB, free: 34.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.3993, allocations: 27.23 kB / 441.8 MB, free: 34.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000541/0.3998, allocations: 52.06 kB / 441.8 MB, free: 34.3 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.4, allocations: 42.98 kB / 441.9 MB, free: 34.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.37e-05/0.4, allocations: 15.31 kB / 441.9 MB, free: 34.28 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002134/0.4022, allocations: 1.418 MB / 443.3 MB, free: 33.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4022, allocations: 0 / 443.3 MB, free: 33.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00108/0.4032, allocations: 298.8 kB / 443.6 MB, free: 33.64 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.003109/0.4064, allocations: 2.169 MB / 445.8 MB, free: 32.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001712/0.4081, allocations: 1.006 MB / 446.8 MB, free: 31.94 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4081, allocations: 0 / 446.8 MB, free: 31.94 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005611/0.4087, allocations: 433.2 kB / 447.2 MB, free: 31.79 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/0.4101, allocations: 311.6 kB / 447.5 MB, free: 31.69 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03347/0.4436, allocations: 18.72 MB / 466.2 MB, free: 14.85 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/0.4447, allocations: 1.697 MB / 467.9 MB, free: 13.12 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001029/0.4457, allocations: 345.7 kB / 468.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007307/0.4464, allocations: 0.5423 MB / 468.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of SimCode: time 3.967e-06/0.4464, allocations: 0 / 468.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05539/0.5018, allocations: 33.57 MB / 0.4906 GB, free: 10.63 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002228/0.5021, allocations: 203.4 kB / 0.4908 GB, free: 10.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.866/3.368, allocations: 0 / 0.4908 GB, free: 10.38 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/linux/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)