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.00133/0.00133, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.002007/0.002007, allocations: 213.7 kB / 24.54 MB, free: 4.016 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.52/1.52, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.001976/0.001976, allocations: 67.89 kB / 378.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3017, allocations: 53.37 MB / 431.9 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004627/0.3063, allocations: 3.032 MB / 434.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.3079, allocations: 0.7478 MB / 435.7 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.3081, allocations: 7.938 kB / 435.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002319/0.3083, allocations: 63.38 kB / 435.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002806/0.3086, allocations: 115.1 kB / 435.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.309, allocations: 107.8 kB / 436 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004633/0.3094, allocations: 414.3 kB / 436.4 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002757/0.3097, allocations: 146.4 kB / 436.5 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.3099, allocations: 163.4 kB / 436.7 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003395/0.3102, allocations: 179.2 kB / 436.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.316e-05/0.3103, allocations: 43.94 kB / 436.9 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.3104, allocations: 63.98 kB / 437 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.3106, allocations: 107.7 kB / 437.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002174/0.3108, allocations: 211 kB / 437.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006021/0.3114, allocations: 0.4902 MB / 437.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.3114, allocations: 4 kB / 437.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3114, allocations: 0 / 437.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.3114, allocations: 0 / 437.8 MB, free: 1.078 MB / 334.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.001537/0.3129, allocations: 0.7195 MB / 438.5 MB, free: 332 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.313, allocations: 8.031 kB / 438.5 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.205e-05/0.3131, allocations: 74.66 kB / 438.6 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.836e-05/0.3131, allocations: 40.7 kB / 438.6 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005286/0.3137, allocations: 294 kB / 438.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.3137, allocations: 21.03 kB / 438.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.237e-05/0.3137, allocations: 36.38 kB / 438.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005756/0.3143, allocations: 345.1 kB / 439.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.3143, allocations: 0 / 439.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.407e-05/0.3144, allocations: 16 kB / 439.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.3144, allocations: 12 kB / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004662/0.3148, allocations: 234.5 kB / 439.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001919/0.3168, allocations: 1.253 MB / 440.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003897/0.3172, allocations: 166.5 kB / 441 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/0.3174, allocations: 112.8 kB / 441.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.304e-05/0.3175, allocations: 4 kB / 441.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.3175, allocations: 38.5 kB / 441.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.102e-06/0.3175, allocations: 3.938 kB / 441.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004947/0.318, allocations: 225.8 kB / 441.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.318, allocations: 55.34 kB / 441.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.3184, allocations: 324.2 kB / 441.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.3185, allocations: 29.7 kB / 441.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.3186, allocations: 220.3 kB / 441.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.923e-05/0.3187, allocations: 47.53 kB / 442 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.153e-05/0.3188, allocations: 57.66 kB / 442 MB, free: 12.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.3189, allocations: 342.7 kB / 442.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.3191, allocations: 75.95 kB / 442.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.3193, allocations: 135.6 kB / 442.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000245/0.3195, allocations: 166.2 kB / 442.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3195, allocations: 4 kB / 442.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003999/0.3199, allocations: 241.1 kB / 443 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3199, allocations: 4 kB / 443 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.32, allocations: 4 kB / 443 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.32, allocations: 4 kB / 443 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.3202, allocations: 44.16 kB / 443 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.3202, allocations: 8 kB / 443.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000353/0.3205, allocations: 71.75 kB / 443.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.146e-05/0.3206, allocations: 12 kB / 443.1 MB, free: 11.41 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.0001859/0.3207, allocations: 153.7 kB / 443.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.97e-05/0.3208, allocations: 27.86 kB / 443.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004239/0.3212, allocations: 202.6 kB / 443.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3212, allocations: 4 kB / 443.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3212, allocations: 0 / 443.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.3212, allocations: 3.984 kB / 443.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008348/0.3221, allocations: 0.5959 MB / 444.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3221, allocations: 4 kB / 444.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001533/0.3222, allocations: 27.92 kB / 444.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.3222, allocations: 4 kB / 444.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.3223, allocations: 8.031 kB / 444.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.3223, allocations: 3.938 kB / 444.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.3223, allocations: 7.984 kB / 444.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005489/0.3228, allocations: 372.6 kB / 444.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.985e-05/0.3229, allocations: 27.78 kB / 444.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.654e-05/0.3229, allocations: 11.94 kB / 444.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00039/0.3233, allocations: 63.92 kB / 444.6 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002007/0.3235, allocations: 71.86 kB / 444.7 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.3235, allocations: 8 kB / 444.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000275/0.3238, allocations: 235.1 kB / 444.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3238, allocations: 0 / 444.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003941/0.3242, allocations: 87.78 kB / 445 MB, free: 9.43 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.0009783/0.3252, allocations: 0.9235 MB / 445.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003903/0.3256, allocations: 172.3 kB / 446.1 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.3256, allocations: 4.062 kB / 446.1 MB, free: 8.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.3258, allocations: 99.88 kB / 446.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004316/0.3262, allocations: 55.34 kB / 446.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004307/0.3305, allocations: 3.052 MB / 449.3 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005023/0.331, allocations: 0.7714 MB / 450.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001545/0.3312, allocations: 34.28 kB / 450.1 MB, free: 4.137 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001838/0.3313, allocations: 107.4 kB / 450.2 MB, free: 4.031 MB / 350.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3313, allocations: 0 / 450.2 MB, free: 4.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03479/0.3661, allocations: 7.528 MB / 457.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.361/8.727, allocations: 8.312 kB / 457.8 MB, free: 12.63 MB / 366.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv --start-time 0 --stop-time 720 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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: 11.408424757421017] Failed to read output from testmodel.py, exit status != 0: ['time', 'energy.y', 'superCap.capacitor.v'] 8.802851585671306 8.829735135 8.513315492 Calling exit ...