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 3.2.2+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.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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 3.2.2+maint.om/package.mo): time 0.002803/0.002804, allocations: 184.1 kB / 7.654 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07993/0.07993, allocations: 7.04 MB / 15.12 MB, free: 184 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.554/1.554, allocations: 194.3 MB / 211.4 MB, free: 15.38 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001604/0.001604, allocations: 100.5 kB / 257.8 MB, free: 1.484 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.758e-05/1.755e-05, allocations: 0 / 310.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.312, allocations: 45.98 MB / 356.1 MB, free: 46.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1012/0.4132, allocations: 78.44 MB / 434.5 MB, free: 13.18 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.4135, allocations: 71.97 kB / 434.6 MB, free: 13.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07438/0.4879, allocations: 31.85 MB / 466.5 MB, free: 13.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.488, allocations: 0 / 466.5 MB, free: 13.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001074/0.4881, allocations: 36 kB / 466.5 MB, free: 13.41 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.002951/0.491, allocations: 1.587 MB / 468.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.872e-05/0.4911, allocations: 12.03 kB / 468.1 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003634/0.4915, allocations: 181.8 kB / 468.3 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002432/0.4939, allocations: 1.471 MB / 469.7 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.488e-05/0.494, allocations: 48 kB / 469.8 MB, free: 10 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001724/0.4942, allocations: 68 kB / 469.9 MB, free: 9.938 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00226/0.4965, allocations: 1.246 MB / 471.1 MB, free: 8.688 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.4986, allocations: 1.253 MB / 472.4 MB, free: 7.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/0.4986, allocations: 8 kB / 472.4 MB, free: 7.402 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.644e-05/0.4987, allocations: 3.938 kB / 472.4 MB, free: 7.398 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.919e-05/0.4988, allocations: 31.95 kB / 472.4 MB, free: 7.367 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008564/0.5073, allocations: 5.611 MB / 478 MB, free: 1.695 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002912/0.5103, allocations: 2.912 MB / 480.9 MB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007779/0.5111, allocations: 0.5013 MB / 481.4 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.507e-05/0.5111, allocations: 4.562 kB / 481.4 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007805/0.5119, allocations: 0.511 MB / 481.9 MB, free: 13.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 2.835e-06/0.5119, allocations: 0 / 481.9 MB, free: 13.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.001382/0.5133, allocations: 0.8024 MB / 482.7 MB, free: 12.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.5134, allocations: 166.7 kB / 482.9 MB, free: 12.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001871/0.5153, allocations: 1.314 MB / 484.2 MB, free: 10.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.988e-05/0.5154, allocations: 29.7 kB / 484.2 MB, free: 10.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006706/0.5161, allocations: 0.6786 MB / 484.9 MB, free: 10.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.5163, allocations: 201 kB / 485.1 MB, free: 10.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.85e-05/0.5163, allocations: 4 kB / 485.1 MB, free: 10.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.5165, allocations: 330 kB / 485.5 MB, free: 9.719 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005342/0.5171, allocations: 373.4 kB / 485.8 MB, free: 9.355 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006413/0.5177, allocations: 0.4956 MB / 486.3 MB, free: 8.812 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006325/0.5183, allocations: 463.6 kB / 486.8 MB, free: 8.355 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.5184, allocations: 0 / 486.8 MB, free: 8.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.00148/0.5198, allocations: 1.013 MB / 487.8 MB, free: 7.336 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.913e-05/0.5199, allocations: 41.75 kB / 487.8 MB, free: 7.289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.5199, allocations: 4 kB / 487.8 MB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.52, allocations: 4 kB / 487.8 MB, free: 7.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009384/0.5209, allocations: 207.7 kB / 488 MB, free: 7.078 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.5209, allocations: 8 kB / 488 MB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005819/0.5215, allocations: 83.31 kB / 488.1 MB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-05/0.5216, allocations: 24 kB / 488.1 MB, free: 6.965 MB / 378.7 MB Warning: Assuming fixed start value for the following 3 variables: rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002182/0.5218, allocations: 139.3 kB / 488.3 MB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001093/0.5229, allocations: 0.8101 MB / 489.1 MB, free: 6.004 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.5231, allocations: 98.78 kB / 489.2 MB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/0.5244, allocations: 0.8766 MB / 490.1 MB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.5245, allocations: 8 kB / 490.1 MB, free: 5.016 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.5245, allocations: 0 / 490.1 MB, free: 5.016 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.5245, allocations: 7.922 kB / 490.1 MB, free: 5.008 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003889/0.5284, allocations: 2.821 MB / 492.9 MB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/0.5284, allocations: 0.875 kB / 492.9 MB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008071/0.5292, allocations: 175.8 kB / 493.1 MB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.5292, allocations: 4 kB / 493.1 MB, free: 1.949 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.903e-05/0.5293, allocations: 23.94 kB / 493.1 MB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.5293, allocations: 0 / 493.1 MB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5293, allocations: 4 kB / 493.1 MB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/0.5312, allocations: 1.447 MB / 494.5 MB, free: 460 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003657/0.5316, allocations: 264.1 kB / 494.8 MB, free: 176 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001485/0.5317, allocations: 15.95 kB / 494.8 MB, free: 160 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004884/0.5322, allocations: 47.94 kB / 494.9 MB, free: 112 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.5323, allocations: 44.5 kB / 494.9 MB, free: 68 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.777e-05/0.5324, allocations: 16.88 kB / 494.9 MB, free: 52 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001482/0.5339, allocations: 1.006 MB / 495.9 MB, free: 15.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5339, allocations: 0 / 495.9 MB, free: 15.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000941/0.5349, allocations: 294.7 kB / 496.2 MB, free: 14.75 MB / 394.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002386/0.5373, allocations: 2.172 MB / 498.4 MB, free: 12.55 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.5386, allocations: 0.8646 MB / 499.3 MB, free: 11.67 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.5387, allocations: 8.062 kB / 499.3 MB, free: 11.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005287/0.5392, allocations: 401.8 kB / 499.7 MB, free: 11.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009693/0.5402, allocations: 226.1 kB / 499.9 MB, free: 11.06 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005628/0.5458, allocations: 3.111 MB / 0.4912 GB, free: 7.895 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001341/0.5472, allocations: 1.684 MB / 0.4928 GB, free: 6.18 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009184/0.5481, allocations: 279.1 kB / 0.4931 GB, free: 5.902 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008248/0.549, allocations: 0.511 MB / 0.4936 GB, free: 5.391 MB / 394.7 MB Notification: Performance of SimCode: time 1.002e-06/0.549, allocations: 0 / 0.4936 GB, free: 5.391 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2771/0.826, allocations: 25.31 MB / 0.5183 GB, free: 106.3 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000153/0.8262, allocations: 143.2 kB / 0.5185 GB, free: 106.1 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.458/3.284, allocations: 0 / 0.5185 GB, free: 106.1 MB / 394.7 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)