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.00164/0.00164, allocations: 116.8 kB / 18.5 MB, free: 4.52 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.00142/0.00142, allocations: 212.9 kB / 21.46 MB, free: 1.566 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.418/1.418, allocations: 230.5 MB / 254.8 MB, free: 15.1 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.002598/0.002598, allocations: 71.83 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1037, allocations: 53.33 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00429/0.108, allocations: 2.993 MB / 430 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.1094, allocations: 0.7478 MB / 430.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001766/0.1096, allocations: 8 kB / 430.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002141/0.1098, allocations: 59.38 kB / 430.8 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002607/0.1101, allocations: 107.1 kB / 430.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000336/0.1104, allocations: 115.8 kB / 431 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004335/0.1108, allocations: 414.3 kB / 431.4 MB, free: 344 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000282/0.1111, allocations: 141.8 kB / 431.6 MB, free: 200 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.1113, allocations: 163.4 kB / 431.7 MB, free: 36 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2048/0.3161, allocations: 185.7 kB / 431.9 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001529/0.3162, allocations: 39.25 kB / 431.9 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001886/0.3164, allocations: 54.59 kB / 432 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001819/0.3166, allocations: 108.2 kB / 432.1 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002354/0.3168, allocations: 201.1 kB / 432.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007357/0.3176, allocations: 0.4937 MB / 432.8 MB, free: 7.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.3176, allocations: 2.906 kB / 432.8 MB, free: 7.781 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.3176, allocations: 1.219 kB / 432.8 MB, free: 7.781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.3176, allocations: 2.125 kB / 432.8 MB, free: 7.781 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.001623/0.3192, allocations: 0.8041 MB / 433.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3193, allocations: 10.91 kB / 433.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.725e-05/0.3193, allocations: 66.84 kB / 433.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.201e-05/0.3194, allocations: 41.3 kB / 433.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004325/0.3198, allocations: 352 kB / 434.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.3198, allocations: 20.97 kB / 434.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.136e-05/0.3199, allocations: 33.84 kB / 434.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004894/0.3204, allocations: 346.3 kB / 434.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.3204, allocations: 3.656 kB / 434.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.3204, allocations: 13.03 kB / 434.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.3204, allocations: 8.328 kB / 434.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003899/0.3208, allocations: 236.6 kB / 434.7 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.3225, allocations: 1.3 MB / 436 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.3229, allocations: 166.8 kB / 436.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002564/0.3231, allocations: 117.3 kB / 436.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.68e-05/0.3232, allocations: 3.562 kB / 436.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.3232, allocations: 38.17 kB / 436.3 MB, free: 6.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.653e-06/0.3232, allocations: 0 / 436.3 MB, free: 6.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004908/0.3237, allocations: 229.9 kB / 436.6 MB, free: 6.188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.761e-05/0.3237, allocations: 54.36 kB / 436.6 MB, free: 6.125 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003748/0.3241, allocations: 321.2 kB / 436.9 MB, free: 6.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.3241, allocations: 27.73 kB / 436.9 MB, free: 5.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.3242, allocations: 214.8 kB / 437.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.25e-05/0.3242, allocations: 56.11 kB / 437.2 MB, free: 5.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.224e-05/0.3243, allocations: 48.97 kB / 437.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.386e-05/0.3244, allocations: 342.7 kB / 437.6 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.3245, allocations: 72.36 kB / 437.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.3247, allocations: 135.5 kB / 437.8 MB, free: 5.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.3249, allocations: 168.7 kB / 438 MB, free: 5.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.3249, allocations: 1.125 kB / 438 MB, free: 5.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003702/0.3253, allocations: 246.2 kB / 438.2 MB, free: 5.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.3253, allocations: 7.281 kB / 438.2 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.3253, allocations: 3.531 kB / 438.2 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.3253, allocations: 3.125 kB / 438.2 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.3255, allocations: 44.7 kB / 438.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.3255, allocations: 4.688 kB / 438.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004097/0.3259, allocations: 74.45 kB / 438.3 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.732e-05/0.3259, allocations: 12.03 kB / 438.3 MB, free: 5.254 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.000121/0.3261, allocations: 151.8 kB / 438.5 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.489e-05/0.3261, allocations: 28.58 kB / 438.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003798/0.3265, allocations: 200.8 kB / 438.7 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3265, allocations: 1.375 kB / 438.7 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3265, allocations: 6.031 kB / 438.7 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.3265, allocations: 1.734 kB / 438.7 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007239/0.3272, allocations: 0.627 MB / 439.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3272, allocations: 0 / 439.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.3274, allocations: 34.95 kB / 439.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.3274, allocations: 1.062 kB / 439.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.3274, allocations: 6.641 kB / 439.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3274, allocations: 1.812 kB / 439.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3274, allocations: 4.656 kB / 439.4 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004464/0.3279, allocations: 384.8 kB / 439.8 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.05e-05/0.3279, allocations: 103.7 kB / 439.9 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.294e-05/0.328, allocations: 6.828 kB / 439.9 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004309/0.3284, allocations: 59.5 kB / 439.9 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.3286, allocations: 72.95 kB / 440 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.3286, allocations: 9.438 kB / 440 MB, free: 4.254 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002282/0.3288, allocations: 235.9 kB / 440.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3288, allocations: 0 / 440.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003801/0.3292, allocations: 88.31 kB / 440.3 MB, free: 4.094 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.0006173/0.3298, allocations: 0.9288 MB / 441.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003345/0.3302, allocations: 175.9 kB / 441.4 MB, free: 3.273 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3302, allocations: 0 / 441.4 MB, free: 3.273 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.3303, allocations: 103.9 kB / 441.5 MB, free: 3.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004216/0.3308, allocations: 62.77 kB / 441.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003464/0.3342, allocations: 3.042 MB / 444.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.3345, allocations: 0.7738 MB / 445.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001532/0.3346, allocations: 38.06 kB / 445.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.3348, allocations: 109.2 kB / 445.6 MB, free: 424 kB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3348, allocations: 0 / 445.6 MB, free: 424 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03421/0.369, allocations: 7.435 MB / 453 MB, free: 14.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.238/8.607, allocations: 13.11 kB / 453 MB, free: 14.91 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.139146262779832] Failed to read output from testmodel.py, exit status != 0: ['time', 'energy.y', 'superCap.capacitor.v'] 8.678365211002529 8.691442002 8.371033609 Calling exit ...