Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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.CCCVcharging,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001331/0.001331, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.00134, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.452/1.452, allocations: 227.7 MB / 247.2 MB, free: 10.19 MB / 206.1 MB 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.001951/0.001952, allocations: 67.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2851, allocations: 50.55 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005996/0.2912, allocations: 4.027 MB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003553/0.2948, allocations: 2.068 MB / 415.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004166/0.2952, allocations: 11.94 kB / 415.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001423/0.2967, allocations: 0.5903 MB / 415.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008421/0.2975, allocations: 386 kB / 416.1 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007645/0.2983, allocations: 287.5 kB / 416.4 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001255/0.2996, allocations: 0.9848 MB / 417.4 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005377/0.3001, allocations: 352.5 kB / 417.7 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005122/0.3007, allocations: 386.7 kB / 418.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000644/0.3013, allocations: 494.3 kB / 418.6 MB, free: 7.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.3015, allocations: 80 kB / 418.7 MB, free: 7.695 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002981/0.3018, allocations: 143.9 kB / 418.8 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004247/0.3022, allocations: 478.7 kB / 419.3 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006409/0.3028, allocations: 0.6251 MB / 419.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001931/0.3048, allocations: 1.774 MB / 421.7 MB, free: 4.676 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3048, allocations: 0 / 421.7 MB, free: 4.676 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3048, allocations: 4 kB / 421.7 MB, free: 4.672 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.438e-05/0.3049, allocations: 0 / 421.7 MB, free: 4.672 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.003233/0.3081, allocations: 1.871 MB / 423.6 MB, free: 2.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.3082, allocations: 12.03 kB / 423.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/0.3083, allocations: 94.7 kB / 423.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002638/0.3086, allocations: 167.9 kB / 423.8 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.3104, allocations: 1.194 MB / 425 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001387/0.3105, allocations: 96.72 kB / 425.1 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.3107, allocations: 55.94 kB / 425.2 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.3119, allocations: 0.6557 MB / 425.8 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.3119, allocations: 11.88 kB / 425.8 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.41e-05/0.312, allocations: 20 kB / 425.9 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.312, allocations: 12 kB / 425.9 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008227/0.3129, allocations: 439.7 kB / 426.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004837/0.3177, allocations: 2.868 MB / 429.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.3188, allocations: 426.5 kB / 429.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006734/0.3195, allocations: 320.7 kB / 429.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.3195, allocations: 3.938 kB / 429.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.3195, allocations: 42.56 kB / 430 MB, free: 12.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.725e-06/0.3196, allocations: 0 / 430 MB, free: 12.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002012/0.3216, allocations: 0.7722 MB / 430.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001618/0.3218, allocations: 277 kB / 431 MB, free: 10.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003215/0.325, allocations: 2.242 MB / 433.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.41e-05/0.3251, allocations: 33.7 kB / 433.3 MB, free: 8.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006769/0.3258, allocations: 0.6396 MB / 433.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.3259, allocations: 115.1 kB / 434 MB, free: 7.934 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/0.3261, allocations: 82.02 kB / 434.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.3262, allocations: 325.9 kB / 434.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003783/0.3266, allocations: 156.7 kB / 434.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004975/0.3271, allocations: 304.8 kB / 434.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007445/0.3279, allocations: 388.3 kB / 435.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3279, allocations: 0 / 435.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001493/0.3294, allocations: 0.6574 MB / 435.9 MB, free: 5.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.3294, allocations: 7.938 kB / 435.9 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.3294, allocations: 4 kB / 435.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003165/0.3298, allocations: 60.81 kB / 436 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003883/0.3302, allocations: 91.88 kB / 436.1 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/0.3321, allocations: 1.771 MB / 437.8 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005716/0.3327, allocations: 55.73 kB / 437.9 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.41e-05/0.3327, allocations: 16 kB / 437.9 MB, free: 3.797 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0008166/0.3336, allocations: 489.6 kB / 438.4 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002148/0.3338, allocations: 139.1 kB / 438.5 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000236/0.334, allocations: 165.5 kB / 438.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.334, allocations: 7.984 kB / 438.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.334, allocations: 0 / 438.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3341, allocations: 0 / 438.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002762/0.3368, allocations: 1.673 MB / 440.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.3368, allocations: 0 / 440.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000331/0.3372, allocations: 75.81 kB / 440.4 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002016/0.3374, allocations: 52.83 kB / 440.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.95e-05/0.3374, allocations: 11.98 kB / 440.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/0.3392, allocations: 1.716 MB / 442.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.3392, allocations: 7.969 kB / 442.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.3409, allocations: 0.8021 MB / 443 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005736/0.3414, allocations: 340 kB / 443.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.3416, allocations: 8 kB / 443.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004567/0.342, allocations: 47.95 kB / 443.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.457e-05/0.3422, allocations: 27.97 kB / 443.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.3422, allocations: 11.98 kB / 443.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002309/0.3445, allocations: 1.608 MB / 445.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.265e-06/0.3445, allocations: 0 / 445.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000825/0.3453, allocations: 211.6 kB / 445.3 MB, free: 12.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00353/0.3489, allocations: 1.717 MB / 447 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.3501, allocations: 0.4988 MB / 447.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.3501, allocations: 0 / 447.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005728/0.3507, allocations: 306.9 kB / 447.8 MB, free: 9.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.3519, allocations: 212.8 kB / 448 MB, free: 9.562 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0209/0.3728, allocations: 13.91 MB / 461.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001069/0.3739, allocations: 1.261 MB / 463.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005497/0.3744, allocations: 211.8 kB / 463.4 MB, free: 9.906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006371/0.3751, allocations: 479.3 kB / 463.8 MB, free: 9.438 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3751, allocations: 4 kB / 463.8 MB, free: 9.434 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06803/0.4431, allocations: 28.02 MB / 491.9 MB, free: 13.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/13.99, allocations: 19.61 kB / 491.9 MB, free: 13.7 MB / 414.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1)