Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001697/0.001697, allocations: 119.7 kB / 18.5 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001776/0.001776, allocations: 213.6 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.412/1.412, allocations: 230.4 MB / 254.7 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 67.89 kB / 373.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1037, allocations: 53.31 MB / 426.9 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004446/0.1082, allocations: 2.994 MB / 429.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.1095, allocations: 0.7478 MB / 430.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.1097, allocations: 4 kB / 430.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002235/0.1099, allocations: 71.36 kB / 430.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002647/0.1102, allocations: 107.1 kB / 430.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.1105, allocations: 111.8 kB / 430.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004622/0.111, allocations: 410.3 kB / 431.3 MB, free: 396 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002864/0.1113, allocations: 141.8 kB / 431.4 MB, free: 252 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.1115, allocations: 163.4 kB / 431.6 MB, free: 88 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2139/0.3254, allocations: 177.4 kB / 431.8 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00014/0.3255, allocations: 40.19 kB / 431.8 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001984/0.3257, allocations: 55.05 kB / 431.9 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001768/0.3259, allocations: 110.7 kB / 432 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002112/0.3261, allocations: 201.2 kB / 432.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005814/0.3267, allocations: 0.4972 MB / 432.7 MB, free: 7.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3267, allocations: 0.5312 kB / 432.7 MB, free: 7.809 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3267, allocations: 2.344 kB / 432.7 MB, free: 7.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.3267, allocations: 0 / 432.7 MB, free: 7.809 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.00147/0.3282, allocations: 0.804 MB / 433.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.3282, allocations: 9.75 kB / 433.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.198e-05/0.3283, allocations: 67.06 kB / 433.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.156e-05/0.3284, allocations: 41.08 kB / 433.6 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004792/0.3288, allocations: 356.7 kB / 433.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.3289, allocations: 25 kB / 434 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.068e-05/0.3289, allocations: 27.09 kB / 434 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004792/0.3294, allocations: 350.9 kB / 434.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.3294, allocations: 0 / 434.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/0.3294, allocations: 9.375 kB / 434.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.3294, allocations: 8.75 kB / 434.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003681/0.3298, allocations: 239.9 kB / 434.6 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.3314, allocations: 1.302 MB / 435.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/0.3317, allocations: 170.8 kB / 436 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002454/0.332, allocations: 116.5 kB / 436.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.269e-05/0.332, allocations: 3 kB / 436.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.332, allocations: 36.55 kB / 436.2 MB, free: 6.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.282e-06/0.332, allocations: 0 / 436.2 MB, free: 6.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004579/0.3325, allocations: 229.4 kB / 436.4 MB, free: 6.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.781e-05/0.3325, allocations: 54.81 kB / 436.5 MB, free: 6.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.3329, allocations: 322 kB / 436.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.3329, allocations: 29.17 kB / 436.8 MB, free: 6.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.333, allocations: 212.9 kB / 437 MB, free: 5.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.927e-05/0.333, allocations: 55.44 kB / 437.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.547e-05/0.3331, allocations: 48.47 kB / 437.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.05e-05/0.3332, allocations: 338.5 kB / 437.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.3333, allocations: 76.33 kB / 437.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.3334, allocations: 136 kB / 437.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001952/0.3336, allocations: 168.6 kB / 437.8 MB, free: 5.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.3336, allocations: 1.25 kB / 437.8 MB, free: 5.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003571/0.334, allocations: 246.2 kB / 438.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.334, allocations: 6.672 kB / 438.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.334, allocations: 1.156 kB / 438.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.334, allocations: 4.141 kB / 438.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001779/0.3342, allocations: 47.88 kB / 438.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.3342, allocations: 3.656 kB / 438.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003604/0.3346, allocations: 69.19 kB / 438.2 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/0.3346, allocations: 13.09 kB / 438.2 MB, free: 5.277 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001189/0.3347, allocations: 157.3 kB / 438.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.676e-05/0.3348, allocations: 28.77 kB / 438.4 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003719/0.3352, allocations: 204.1 kB / 438.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.3352, allocations: 2.094 kB / 438.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3352, allocations: 0.7031 kB / 438.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.3352, allocations: 1.797 kB / 438.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007451/0.3359, allocations: 0.6301 MB / 439.2 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3359, allocations: 1.531 kB / 439.2 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001508/0.3361, allocations: 28.33 kB / 439.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.3361, allocations: 1.281 kB / 439.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.3361, allocations: 8.094 kB / 439.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3361, allocations: 0 / 439.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3361, allocations: 1.969 kB / 439.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004377/0.3365, allocations: 387.8 kB / 439.7 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.596e-05/0.3366, allocations: 103.4 kB / 439.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.302e-05/0.3367, allocations: 6.516 kB / 439.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003832/0.337, allocations: 55.42 kB / 439.8 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000181/0.3372, allocations: 72.59 kB / 439.9 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.3372, allocations: 12.14 kB / 439.9 MB, free: 4.285 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002243/0.3375, allocations: 238.3 kB / 440.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3375, allocations: 0 / 440.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003761/0.3378, allocations: 87.56 kB / 440.2 MB, free: 4.125 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0006519/0.3385, allocations: 0.925 MB / 441.1 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003393/0.3388, allocations: 178.4 kB / 441.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3388, allocations: 0 / 441.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.339, allocations: 99.91 kB / 441.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004123/0.3394, allocations: 63.12 kB / 441.5 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003583/0.343, allocations: 3.038 MB / 444.5 MB, free: 1.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.3432, allocations: 0.7743 MB / 445.3 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001688/0.3434, allocations: 36.23 kB / 445.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.3435, allocations: 108.8 kB / 445.4 MB, free: 456 kB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3435, allocations: 0 / 445.4 MB, free: 456 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03588/0.3794, allocations: 7.431 MB / 452.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.025/8.404, allocations: 21.27 kB / 452.9 MB, free: 14.96 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.76996852317825] Failed to read output from testmodel.py, exit status != 0: ['time', 'energy.y', 'superCap.capacitor.v'] 8.486929760314524 8.503188225 8.173558296 Calling exit ...