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.000868/0.000868, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005813/0.005813, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.496/1.496, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06906/0.06906, allocations: 7.038 MB / 277.8 MB, free: 14.17 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.0004941/0.0004942, allocations: 12.22 kB / 337.7 MB, free: 27.13 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09238/0.09288, allocations: 49.06 MB / 386.7 MB, free: 9.98 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005278/0.09821, allocations: 4.26 MB / 391 MB, free: 5.695 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002912/0.1012, allocations: 1.637 MB / 392.6 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000391/0.1016, allocations: 19.94 kB / 392.7 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007525/0.1023, allocations: 294.5 kB / 392.9 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005135/0.1029, allocations: 210.6 kB / 393.2 MB, free: 3.531 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005773/0.1034, allocations: 315.8 kB / 393.5 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002189/0.1056, allocations: 2.367 MB / 395.8 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001611/0.1073, allocations: 1.418 MB / 397.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000692/0.108, allocations: 0.5246 MB / 397.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006468/0.1086, allocations: 0.6488 MB / 398.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.1088, allocations: 88 kB / 398.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001516/0.1089, allocations: 92 kB / 398.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002272/0.1092, allocations: 266.6 kB / 398.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007959/0.11, allocations: 0.8449 MB / 399.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002827/0.1128, allocations: 3.504 MB / 403.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1128, allocations: 0 / 403.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1128, allocations: 0 / 403.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.243e-05/0.1129, allocations: 0 / 403.2 MB, free: 9.398 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.003405/0.1163, allocations: 1.871 MB / 405.1 MB, free: 7.465 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.77e-05/0.1163, allocations: 8.031 kB / 405.1 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003602/0.1167, allocations: 212.3 kB / 405.3 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002826/0.117, allocations: 186.7 kB / 405.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.1192, allocations: 1.706 MB / 407.2 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.718e-05/0.1193, allocations: 102.8 kB / 407.3 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002043/0.1195, allocations: 120.4 kB / 407.4 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003124/0.1227, allocations: 1.851 MB / 409.2 MB, free: 3.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/0.1227, allocations: 4 kB / 409.3 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.1228, allocations: 52 kB / 409.3 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.358e-05/0.1229, allocations: 28 kB / 409.3 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002732/0.1256, allocations: 1.528 MB / 410.9 MB, free: 1.531 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009981/0.1356, allocations: 7.18 MB / 418 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003211/0.1388, allocations: 2.985 MB / 421 MB, free: 6.805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009112/0.1398, allocations: 0.5578 MB / 421.6 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.295e-05/0.1398, allocations: 4.562 kB / 421.6 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008861/0.1407, allocations: 0.5588 MB / 422.1 MB, free: 5.656 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 1.783e-06/0.1407, allocations: 0 / 422.1 MB, free: 5.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.002286/0.143, allocations: 1.263 MB / 423.4 MB, free: 4.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.1431, allocations: 166.7 kB / 423.6 MB, free: 4.184 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002953/0.1461, allocations: 1.98 MB / 425.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.283e-05/0.1462, allocations: 37.7 kB / 425.6 MB, free: 2.148 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007772/0.147, allocations: 0.7121 MB / 426.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/0.1472, allocations: 213 kB / 426.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.1474, allocations: 73.69 kB / 426.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1476, allocations: 337.9 kB / 426.9 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007553/0.1483, allocations: 445.8 kB / 427.3 MB, free: 372 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1828/0.3311, allocations: 0.6506 MB / 428 MB, free: 38.01 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004244/0.3354, allocations: 2.01 MB / 430 MB, free: 37.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.3354, allocations: 1 kB / 430 MB, free: 37.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00234/0.3377, allocations: 1.299 MB / 431.3 MB, free: 37.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.685e-05/0.3378, allocations: 36.95 kB / 431.3 MB, free: 37.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.3378, allocations: 9.781 kB / 431.3 MB, free: 37.58 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.524e-05/0.3378, allocations: 9.25 kB / 431.4 MB, free: 37.58 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008774/0.3387, allocations: 226.6 kB / 431.6 MB, free: 37.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/0.3387, allocations: 17.61 kB / 431.6 MB, free: 37.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007231/0.3395, allocations: 144.5 kB / 431.7 MB, free: 37.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.668e-05/0.3396, allocations: 32.89 kB / 431.8 MB, free: 37.58 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.001252/0.3408, allocations: 0.7334 MB / 432.5 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/0.341, allocations: 141.7 kB / 432.6 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001657/0.3427, allocations: 1.005 MB / 433.6 MB, free: 37.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.3427, allocations: 11.25 kB / 433.7 MB, free: 37.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.3427, allocations: 3.469 kB / 433.7 MB, free: 37.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.699e-06/0.3427, allocations: 4.312 kB / 433.7 MB, free: 37.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004295/0.347, allocations: 3.032 MB / 436.7 MB, free: 36.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.347, allocations: 2.078 kB / 436.7 MB, free: 36.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008013/0.3479, allocations: 183.6 kB / 436.9 MB, free: 36.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/0.3479, allocations: 6.203 kB / 436.9 MB, free: 36.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-05/0.3479, allocations: 23.42 kB / 436.9 MB, free: 36.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.348, allocations: 3.141 kB / 436.9 MB, free: 36.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.348, allocations: 0.7656 kB / 436.9 MB, free: 36.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.3503, allocations: 1.59 MB / 438.5 MB, free: 35.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003651/0.3507, allocations: 303.2 kB / 438.8 MB, free: 35.3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000156/0.3509, allocations: 30.34 kB / 438.8 MB, free: 35.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005083/0.3514, allocations: 50.7 kB / 438.9 MB, free: 35.28 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.3515, allocations: 39.3 kB / 438.9 MB, free: 35.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.227e-05/0.3516, allocations: 18.77 kB / 438.9 MB, free: 35.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001958/0.3535, allocations: 1.421 MB / 440.4 MB, free: 34.68 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3535, allocations: 0 / 440.4 MB, free: 34.68 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009617/0.3545, allocations: 298.8 kB / 440.6 MB, free: 34.62 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.002286/0.3568, allocations: 2.162 MB / 442.8 MB, free: 33.33 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.3582, allocations: 1.002 MB / 443.8 MB, free: 32.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3582, allocations: 384 / 443.8 MB, free: 32.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005539/0.3588, allocations: 437.2 kB / 444.2 MB, free: 32.78 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001269/0.3601, allocations: 317.2 kB / 444.5 MB, free: 32.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02929/0.3894, allocations: 18.73 MB / 463.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008533/0.3903, allocations: 1.697 MB / 465 MB, free: 13.71 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008395/0.3911, allocations: 349.7 kB / 465.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006759/0.3918, allocations: 0.5462 MB / 465.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of SimCode: time 2.084e-06/0.3918, allocations: 0 / 465.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04648/0.4383, allocations: 33.56 MB / 499.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/0.4385, allocations: 207.2 kB / 499.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.258/2.696, allocations: 0 / 499.6 MB, free: 10.96 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)