Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001546/0.001546, allocations: 108 kB / 16.92 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001775/0.001775, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009711/0.0009711, allocations: 43.33 kB / 300.7 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1194, allocations: 49.44 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005877/0.1254, allocations: 3.973 MB / 354.1 MB, free: 348 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003526/0.1289, allocations: 1.905 MB / 356 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006287/0.1296, allocations: 15.94 kB / 356.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.1311, allocations: 0.5837 MB / 356.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009645/0.1322, allocations: 346.2 kB / 357 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000951/0.1332, allocations: 292.2 kB / 357.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001509/0.1347, allocations: 0.9742 MB / 358.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005666/0.1353, allocations: 360.4 kB / 358.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005468/0.1359, allocations: 390.7 kB / 359 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007561/0.1366, allocations: 490.3 kB / 359.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002041/0.1368, allocations: 80 kB / 359.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003917/0.1372, allocations: 136 kB / 359.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004009/0.1376, allocations: 470.7 kB / 360.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007114/0.1384, allocations: 0.6212 MB / 360.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001553/0.1399, allocations: 1.732 MB / 362.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1399, allocations: 0 / 362.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.14, allocations: 0 / 362.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.179e-05/0.14, allocations: 8 kB / 362.5 MB, free: 7.957 MB / 302.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.00336/0.1434, allocations: 1.814 MB / 364.3 MB, free: 6.086 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.1434, allocations: 12.03 kB / 364.3 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001565/0.1436, allocations: 90.7 kB / 364.4 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003016/0.1439, allocations: 159 kB / 364.5 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00177/0.1457, allocations: 1.165 MB / 365.7 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003431/0.146, allocations: 136.7 kB / 365.8 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.08e-05/0.1461, allocations: 48 kB / 365.9 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.1473, allocations: 0.679 MB / 366.6 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.1474, allocations: 3.984 kB / 366.6 MB, free: 3.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.911e-05/0.1474, allocations: 24 kB / 366.6 MB, free: 3.664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.1475, allocations: 12 kB / 366.6 MB, free: 3.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008505/0.1483, allocations: 447.6 kB / 367.1 MB, free: 3.215 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00441/0.1527, allocations: 2.891 MB / 369.9 MB, free: 224 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1679/0.3206, allocations: 444.5 kB / 370.4 MB, free: 24.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008199/0.3215, allocations: 319.2 kB / 370.7 MB, free: 24.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.032e-05/0.3215, allocations: 3.688 kB / 370.7 MB, free: 24.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.3216, allocations: 43.69 kB / 370.7 MB, free: 24.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 3.557e-06/0.3216, allocations: 0.9062 kB / 370.7 MB, free: 24.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002254/0.3238, allocations: 0.8027 MB / 371.5 MB, free: 24.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/0.3239, allocations: 261.7 kB / 371.8 MB, free: 24.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002923/0.3268, allocations: 2.23 MB / 374 MB, free: 23.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.465e-05/0.3269, allocations: 34.64 kB / 374.1 MB, free: 23.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004322/0.3273, allocations: 0.6385 MB / 374.7 MB, free: 23.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.19e-05/0.3274, allocations: 111.8 kB / 374.8 MB, free: 23.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.3276, allocations: 81.5 kB / 374.9 MB, free: 23.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.625e-05/0.3276, allocations: 320 kB / 375.2 MB, free: 23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003793/0.328, allocations: 169.7 kB / 375.4 MB, free: 22.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004449/0.3285, allocations: 317.5 kB / 375.7 MB, free: 22.74 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007553/0.3292, allocations: 422.5 kB / 376.1 MB, free: 22.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3292, allocations: 1.375 kB / 376.1 MB, free: 22.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00147/0.3307, allocations: 0.6604 MB / 376.7 MB, free: 22.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.3307, allocations: 8.812 kB / 376.8 MB, free: 22.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.3308, allocations: 7.047 kB / 376.8 MB, free: 22.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000285/0.331, allocations: 63.34 kB / 376.8 MB, free: 22.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004037/0.3315, allocations: 98.19 kB / 376.9 MB, free: 22.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.3328, allocations: 1.768 MB / 378.7 MB, free: 20.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004737/0.3332, allocations: 65.03 kB / 378.8 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.3333, allocations: 15.77 kB / 378.8 MB, free: 20.57 MB / 302.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.0005915/0.3339, allocations: 494.3 kB / 379.2 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.3341, allocations: 134.8 kB / 379.4 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001958/0.3343, allocations: 164.3 kB / 379.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.3343, allocations: 2.531 kB / 379.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3343, allocations: 1.344 kB / 379.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3343, allocations: 1.922 kB / 379.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002583/0.3369, allocations: 1.678 MB / 381.2 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.3369, allocations: 0.75 kB / 381.2 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003787/0.3373, allocations: 78.3 kB / 381.3 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002/0.3375, allocations: 59.34 kB / 381.4 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.651e-05/0.3376, allocations: 8.625 kB / 381.4 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001245/0.3388, allocations: 1.718 MB / 383.1 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3388, allocations: 0 / 383.1 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.3405, allocations: 0.8343 MB / 383.9 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00043/0.3409, allocations: 335.4 kB / 384.2 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001372/0.341, allocations: 7.984 kB / 384.3 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004871/0.3415, allocations: 49.73 kB / 384.3 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.052e-05/0.3416, allocations: 39.08 kB / 384.3 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.3417, allocations: 8.828 kB / 384.4 MB, free: 17.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002221/0.3439, allocations: 1.605 MB / 386 MB, free: 16.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3439, allocations: 0 / 386 MB, free: 16.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007776/0.3447, allocations: 201.1 kB / 386.2 MB, free: 16.56 MB / 302.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.002657/0.3473, allocations: 1.75 MB / 387.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001231/0.3486, allocations: 0.5435 MB / 388.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3486, allocations: 1.406 kB / 388.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000561/0.3492, allocations: 335.2 kB / 388.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.3502, allocations: 207.7 kB / 389 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0166/0.3668, allocations: 15.47 MB / 404.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005728/0.3674, allocations: 1.264 MB / 405.7 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004724/0.3679, allocations: 211.8 kB / 405.9 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000443/0.3683, allocations: 479.3 kB / 406.4 MB, free: 128 kB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3684, allocations: 3.938 kB / 406.4 MB, free: 124 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05672/0.4251, allocations: 27.47 MB / 433.9 MB, free: 4.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.56, allocations: 11.88 kB / 433.9 MB, free: 4.898 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1)