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.000853/0.0008531, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.001092/0.001092, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.503/1.503, allocations: 223.3 MB / 241.6 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003053/0.0003055, allocations: 12 kB / 301.5 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1131, allocations: 50.41 MB / 351.9 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005113/0.1183, allocations: 3.598 MB / 355.5 MB, free: 8 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003502/0.1218, allocations: 1.855 MB / 357.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006081/0.1224, allocations: 15.94 kB / 357.4 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001596/0.1241, allocations: 0.5451 MB / 358 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009608/0.125, allocations: 318.7 kB / 358.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008546/0.1259, allocations: 255 kB / 358.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001495/0.1274, allocations: 0.935 MB / 359.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006126/0.1281, allocations: 308.1 kB / 359.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006397/0.1287, allocations: 310.7 kB / 360.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000836/0.1296, allocations: 442.2 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001656/0.1297, allocations: 36 kB / 360.5 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000362/0.1301, allocations: 91.97 kB / 360.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004383/0.1305, allocations: 418.7 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009936/0.1316, allocations: 0.5994 MB / 361.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001848/0.1334, allocations: 1.65 MB / 363.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1334, allocations: 0 / 363.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1334, allocations: 0 / 363.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.779e-05/0.1335, allocations: 0 / 363.3 MB, free: 8.238 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.003607/0.1371, allocations: 1.589 MB / 364.9 MB, free: 6.594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.1372, allocations: 12.03 kB / 364.9 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002269/0.1374, allocations: 90.7 kB / 365 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004271/0.1378, allocations: 163 kB / 365.1 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002223/0.1401, allocations: 1.169 MB / 366.3 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003219/0.1404, allocations: 144.7 kB / 366.4 MB, free: 4.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.611e-05/0.1405, allocations: 48 kB / 366.5 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.1418, allocations: 0.6747 MB / 367.2 MB, free: 4.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.1418, allocations: 4 kB / 367.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.828e-05/0.1419, allocations: 24 kB / 367.2 MB, free: 4.164 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.1419, allocations: 12 kB / 367.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008858/0.1428, allocations: 451.7 kB / 367.6 MB, free: 3.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00498/0.1478, allocations: 2.922 MB / 370.6 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.149, allocations: 482.4 kB / 371 MB, free: 204 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1931/0.3421, allocations: 326.6 kB / 371.3 MB, free: 24.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.632e-05/0.3422, allocations: 5.25 kB / 371.3 MB, free: 24.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.202e-05/0.3423, allocations: 39.12 kB / 371.4 MB, free: 24.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 3.416e-06/0.3423, allocations: 0 / 371.4 MB, free: 24.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.003137/0.3454, allocations: 0.8367 MB / 372.2 MB, free: 23.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.3456, allocations: 269.6 kB / 372.5 MB, free: 23.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004468/0.35, allocations: 2.227 MB / 374.7 MB, free: 23.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.038e-05/0.3501, allocations: 33.2 kB / 374.7 MB, free: 23.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006839/0.3508, allocations: 0.6449 MB / 375.4 MB, free: 23.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.351, allocations: 108.2 kB / 375.5 MB, free: 22.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.3511, allocations: 36.7 kB / 375.5 MB, free: 22.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.3512, allocations: 324.2 kB / 375.9 MB, free: 22.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004771/0.3517, allocations: 180.3 kB / 376 MB, free: 22.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005685/0.3522, allocations: 323.1 kB / 376.3 MB, free: 22.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009201/0.3532, allocations: 430.2 kB / 376.8 MB, free: 22.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.3532, allocations: 1.25 kB / 376.8 MB, free: 22.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001741/0.3549, allocations: 0.6893 MB / 377.5 MB, free: 21.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.355, allocations: 5.938 kB / 377.5 MB, free: 21.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.355, allocations: 9.391 kB / 377.5 MB, free: 21.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003634/0.3554, allocations: 67.23 kB / 377.5 MB, free: 21.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004464/0.3558, allocations: 98.02 kB / 377.6 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/0.3576, allocations: 1.623 MB / 379.3 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005276/0.3581, allocations: 69.72 kB / 379.3 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.3582, allocations: 12.16 kB / 379.3 MB, free: 20.34 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.0007208/0.3589, allocations: 488.2 kB / 379.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.3591, allocations: 138.9 kB / 379.9 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002357/0.3593, allocations: 160.4 kB / 380.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.3593, allocations: 2.625 kB / 380.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3593, allocations: 0 / 380.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.3594, allocations: 3.125 kB / 380.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003141/0.3625, allocations: 1.709 MB / 381.8 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3625, allocations: 1.031 kB / 381.8 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003733/0.3629, allocations: 81.31 kB / 381.9 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002154/0.3631, allocations: 59.08 kB / 382 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.184e-05/0.3632, allocations: 16.78 kB / 382 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.3645, allocations: 1.573 MB / 383.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3645, allocations: 1.031 kB / 383.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001808/0.3663, allocations: 0.8606 MB / 384.4 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004734/0.3668, allocations: 333.1 kB / 384.7 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.3669, allocations: 9.5 kB / 384.7 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005314/0.3674, allocations: 68.2 kB / 384.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.3676, allocations: 28.62 kB / 384.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-05/0.3676, allocations: 8.719 kB / 384.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002709/0.3703, allocations: 1.604 MB / 386.4 MB, free: 16.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3703, allocations: 0 / 386.4 MB, free: 16.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001291/0.3716, allocations: 202.2 kB / 386.6 MB, free: 16.5 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.004216/0.3759, allocations: 1.78 MB / 388.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.3777, allocations: 0.5366 MB / 389 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.3777, allocations: 0 / 389 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000639/0.3783, allocations: 332.7 kB / 389.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.3795, allocations: 206.6 kB / 389.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.034/0.4135, allocations: 15.87 MB / 405.4 MB, free: 1.418 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001212/0.4147, allocations: 1.257 MB / 406.6 MB, free: 140 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0009078/0.4157, allocations: 211.8 kB / 406.8 MB, free: 15.93 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009496/0.4167, allocations: 479.3 kB / 407.3 MB, free: 15.46 MB / 318.1 MB Notification: Performance of SimCode: time 1.703e-06/0.4167, allocations: 0 / 407.3 MB, free: 15.46 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06269/0.4794, allocations: 26.11 MB / 433.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002675/0.4797, allocations: 287.4 kB / 433.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.665/3.145, allocations: 0 / 433.7 MB, free: 5.27 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1)