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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009064/0.0009064, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8576/0.8576, allocations: 158.6 MB / 184.2 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo): time 0.0342/0.0342, allocations: 5.561 MB / 242 MB, free: 9.785 MB / 234.7 MB " [Timeout remaining time 180] Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.244e-06/2.244e-06, allocations: 3.984 kB / 358.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.746e-05/1.971e-05, allocations: 10.16 kB / 358.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.003423/0.003442, allocations: 4.21 MB / 362.9 MB, free: 1.625 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.005463, allocations: 1.843 MB / 364.8 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003878/0.00585, allocations: 19.94 kB / 364.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007719/0.006622, allocations: 361.8 kB / 365.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004764/0.007099, allocations: 302 kB / 365.4 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005437/0.007643, allocations: 351.6 kB / 365.8 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0021/0.009742, allocations: 2.694 MB / 368.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008538/0.0106, allocations: 0.8303 MB / 369.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001181/0.01178, allocations: 1.384 MB / 370.7 MB, free: 9.789 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007788/0.01256, allocations: 0.9044 MB / 371.6 MB, free: 8.883 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002645/0.01282, allocations: 332 kB / 371.9 MB, free: 8.559 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002317/0.01305, allocations: 332 kB / 372.2 MB, free: 8.234 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002807/0.01333, allocations: 0.5454 MB / 372.8 MB, free: 7.688 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005549/0.01389, allocations: 0.729 MB / 373.5 MB, free: 6.957 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002737/0.01662, allocations: 3.912 MB / 377.4 MB, free: 3.031 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.01663, allocations: 0 / 377.4 MB, free: 3.031 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.01663, allocations: 4 kB / 377.4 MB, free: 3.027 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.991e-05/0.01667, allocations: 0 / 377.4 MB, free: 3.027 MB / 298.7 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.002878/0.01955, allocations: 2.215 MB / 379.6 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.01959, allocations: 11.98 kB / 379.7 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002484/0.01984, allocations: 212.4 kB / 379.9 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002243/0.02007, allocations: 199.7 kB / 380.1 MB, free: 348 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.02196, allocations: 1.7 MB / 381.8 MB, free: 14.6 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.091e-05/0.02203, allocations: 102.8 kB / 381.9 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.02216, allocations: 124.4 kB / 382 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002037/0.02419, allocations: 2.015 MB / 384 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.611e-05/0.02422, allocations: 4.172 kB / 384 MB, free: 12.24 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.443e-05/0.02431, allocations: 56.12 kB / 384.1 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.815e-05/0.02432, allocations: 32 kB / 384.1 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.02601, allocations: 1.512 MB / 385.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006322/0.03233, allocations: 6.423 MB / 392 MB, free: 4.082 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/0.03382, allocations: 1.179 MB / 393.2 MB, free: 2.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005906/0.03441, allocations: 0.5026 MB / 393.7 MB, free: 2.406 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.925e-05/0.03444, allocations: 8.5 kB / 393.7 MB, free: 2.398 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006616/0.0351, allocations: 0.7336 MB / 394.4 MB, free: 1.594 MB / 314.7 MB Notification: Performance of pre-optimization done (n=59): time 2.875e-06/0.0351, allocations: 0 / 394.4 MB, free: 1.594 MB / 314.7 MB Notification: Performance of matching and sorting (n=59): time 0.00153/0.03663, allocations: 1.257 MB / 395.7 MB, free: 340 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000336/0.03697, allocations: 166.7 kB / 395.9 MB, free: 136 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001913/0.03888, allocations: 1.984 MB / 397.8 MB, free: 14.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.393e-05/0.03893, allocations: 37.7 kB / 397.9 MB, free: 14.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004765/0.03941, allocations: 0.7249 MB / 398.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.03956, allocations: 222.1 kB / 398.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.03973, allocations: 154.6 kB / 399 MB, free: 12.98 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.304e-05/0.03983, allocations: 337.9 kB / 399.3 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000501/0.04033, allocations: 467.5 kB / 399.8 MB, free: 12.18 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000652/0.04098, allocations: 0.7886 MB / 400.6 MB, free: 11.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002413/0.04339, allocations: 1.96 MB / 402.5 MB, free: 9.219 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.301e-06/0.0434, allocations: 4 kB / 402.5 MB, free: 9.215 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00177/0.04517, allocations: 1.331 MB / 403.8 MB, free: 7.863 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.326e-05/0.04521, allocations: 40.83 kB / 403.9 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.04522, allocations: 7.938 kB / 403.9 MB, free: 7.812 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.04525, allocations: 12.75 kB / 403.9 MB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004663/0.04571, allocations: 211.7 kB / 404.1 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/0.04573, allocations: 15.94 kB / 404.1 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000462/0.04619, allocations: 143.1 kB / 404.3 MB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.721e-05/0.04623, allocations: 28 kB / 404.3 MB, free: 7.41 MB / 330.7 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.0008713/0.04711, allocations: 0.7365 MB / 405 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.04722, allocations: 143.1 kB / 405.2 MB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001062/0.04829, allocations: 0.9954 MB / 406.2 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.04829, allocations: 4 kB / 406.2 MB, free: 5.508 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.0483, allocations: 3.938 kB / 406.2 MB, free: 5.504 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.0483, allocations: 3.984 kB / 406.2 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002687/0.05099, allocations: 2.72 MB / 408.9 MB, free: 2.711 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.051, allocations: 4 kB / 408.9 MB, free: 2.707 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003946/0.05139, allocations: 167.8 kB / 409.1 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.05139, allocations: 8.031 kB / 409.1 MB, free: 2.535 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/0.05143, allocations: 23.98 kB / 409.1 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.05144, allocations: 0 / 409.1 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.05144, allocations: 4 kB / 409.1 MB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.05309, allocations: 1.575 MB / 410.7 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002434/0.05333, allocations: 234.8 kB / 410.9 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.487e-05/0.05343, allocations: 23.98 kB / 410.9 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002612/0.05369, allocations: 51.95 kB / 411 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.012e-05/0.05378, allocations: 44.42 kB / 411 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.0538, allocations: 19.98 kB / 411 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001312/0.05512, allocations: 1.414 MB / 412.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.05512, allocations: 0 / 412.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005707/0.05569, allocations: 303.3 kB / 412.8 MB, free: 14.83 MB / 346.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) * 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.001649/0.05734, allocations: 2.159 MB / 414.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.0584, allocations: 0.9933 MB / 415.9 MB, free: 11.63 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.0584, allocations: 4 kB / 415.9 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003997/0.0588, allocations: 402.6 kB / 416.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008049/0.05961, allocations: 340.1 kB / 416.6 MB, free: 10.91 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02561/0.08522, allocations: 16.62 MB / 433.3 MB, free: 9.934 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000781/0.086, allocations: 1.11 MB / 434.4 MB, free: 8.785 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007093/0.08671, allocations: 353.7 kB / 434.7 MB, free: 8.438 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005787/0.08729, allocations: 0.5511 MB / 435.3 MB, free: 7.887 MB / 362.7 MB Notification: Performance of SimCode: time 1.203e-06/0.08729, allocations: 0 / 435.3 MB, free: 7.887 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1729/0.2602, allocations: 37.86 MB / 473.1 MB, free: 61.61 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/7.733, allocations: 10.28 kB / 473.1 MB, free: 61.61 MB / 362.7 MB " [Timeout remaining time 652] (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 --stepSize=1 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.512787034735084] Failed to read output from testmodel.py, exit status != 0: 7.8299766685813665 7.8372989 7.8182145830000005 Calling exit ...