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.00146/0.00146, allocations: 102.6 kB / 16.5 MB, free: 6.645 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.001657/0.001657, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.417/1.417, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 43.05 kB / 300.1 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.119, allocations: 49.45 MB / 349.5 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.008184/0.1273, allocations: 4 MB / 353.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004073/0.1314, allocations: 1.882 MB / 355.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005333/0.132, allocations: 15.88 kB / 355.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001791/0.1338, allocations: 0.5529 MB / 356 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001245/0.1351, allocations: 314.7 kB / 356.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009323/0.1361, allocations: 258.2 kB / 356.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001599/0.1377, allocations: 0.9341 MB / 357.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007466/0.1384, allocations: 312 kB / 357.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006879/0.1391, allocations: 334.8 kB / 358.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008545/0.14, allocations: 470.2 kB / 358.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001545/0.1402, allocations: 52 kB / 358.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003538/0.1405, allocations: 103.9 kB / 358.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004404/0.141, allocations: 442.7 kB / 359.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008124/0.1418, allocations: 0.5822 MB / 359.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002329/0.1442, allocations: 1.693 MB / 361.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.1442, allocations: 0 / 361.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1442, allocations: 0 / 361.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.749e-05/0.1442, allocations: 0 / 361.4 MB, free: 8.789 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.003631/0.1479, allocations: 1.818 MB / 363.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.1479, allocations: 8.031 kB / 363.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.1481, allocations: 94.7 kB / 363.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002178/0.1483, allocations: 159 kB / 363.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001712/0.15, allocations: 1.161 MB / 364.6 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003198/0.1503, allocations: 144.6 kB / 364.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.956e-05/0.1504, allocations: 48 kB / 364.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.1516, allocations: 0.6674 MB / 365.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.1516, allocations: 0 / 365.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.418e-05/0.1517, allocations: 27.98 kB / 365.5 MB, free: 4.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.537e-05/0.1517, allocations: 12 kB / 365.5 MB, free: 4.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008444/0.1526, allocations: 447.7 kB / 366 MB, free: 4.047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00406/0.1567, allocations: 2.891 MB / 368.9 MB, free: 1.051 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.1578, allocations: 458.3 kB / 369.3 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006546/0.1585, allocations: 324.7 kB / 369.6 MB, free: 280 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.505e-05/0.1585, allocations: 4 kB / 369.6 MB, free: 276 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.1586, allocations: 38.56 kB / 369.7 MB, free: 228 kB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.453e-06/0.1586, allocations: 0 / 369.7 MB, free: 228 kB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.1581/0.3167, allocations: 0.7868 MB / 370.4 MB, free: 24.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.3168, allocations: 263.1 kB / 370.7 MB, free: 24.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002991/0.3198, allocations: 2.231 MB / 372.9 MB, free: 24.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.515e-05/0.3199, allocations: 35.83 kB / 373 MB, free: 24.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004126/0.3203, allocations: 0.6384 MB / 373.6 MB, free: 24.03 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.712e-05/0.3204, allocations: 109.3 kB / 373.7 MB, free: 23.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.3205, allocations: 77.84 kB / 373.8 MB, free: 23.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.788e-05/0.3205, allocations: 322.8 kB / 374.1 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004022/0.3209, allocations: 172.5 kB / 374.3 MB, free: 23.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004512/0.3214, allocations: 320.4 kB / 374.6 MB, free: 23.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000751/0.3222, allocations: 415.4 kB / 375 MB, free: 23.13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3222, allocations: 1.5 kB / 375 MB, free: 23.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001382/0.3236, allocations: 0.6594 MB / 375.7 MB, free: 22.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.3236, allocations: 6.297 kB / 375.7 MB, free: 22.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.3236, allocations: 2.75 kB / 375.7 MB, free: 22.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002639/0.3239, allocations: 68.78 kB / 375.7 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004033/0.3243, allocations: 97.5 kB / 375.8 MB, free: 22.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001345/0.3257, allocations: 1.605 MB / 377.4 MB, free: 21.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004577/0.3261, allocations: 64.59 kB / 377.5 MB, free: 21.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.949e-05/0.3262, allocations: 12.47 kB / 377.5 MB, free: 21.33 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.0005444/0.3267, allocations: 486 kB / 378 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.3269, allocations: 137 kB / 378.1 MB, free: 21.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001935/0.3271, allocations: 160.2 kB / 378.3 MB, free: 20.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.3271, allocations: 10.31 kB / 378.3 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.3271, allocations: 1.062 kB / 378.3 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.3271, allocations: 6.078 kB / 378.3 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002559/0.3297, allocations: 1.683 MB / 380 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3297, allocations: 0.5156 kB / 380 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.3301, allocations: 76.95 kB / 380 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001857/0.3303, allocations: 52.95 kB / 380.1 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.717e-05/0.3303, allocations: 12.22 kB / 380.1 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001195/0.3315, allocations: 1.557 MB / 381.7 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3315, allocations: 0 / 381.7 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.3332, allocations: 0.8259 MB / 382.5 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004397/0.3336, allocations: 335 kB / 382.8 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.3337, allocations: 8.922 kB / 382.8 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004922/0.3342, allocations: 56.17 kB / 382.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.124e-05/0.3343, allocations: 33.09 kB / 382.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/0.3344, allocations: 11.61 kB / 382.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002114/0.3365, allocations: 1.6 MB / 384.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3365, allocations: 1.062 kB / 384.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008054/0.3373, allocations: 204 kB / 384.7 MB, free: 17.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.002728/0.3401, allocations: 1.755 MB / 386.5 MB, free: 16.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.3412, allocations: 0.513 MB / 387 MB, free: 16.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3412, allocations: 1.156 kB / 387 MB, free: 16.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005634/0.3418, allocations: 331.5 kB / 387.3 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009606/0.3427, allocations: 207.9 kB / 387.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01954/0.3623, allocations: 15.73 MB / 403.3 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005849/0.3629, allocations: 1.249 MB / 404.5 MB, free: 2.137 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004644/0.3634, allocations: 223.9 kB / 404.7 MB, free: 1.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004464/0.3638, allocations: 475.3 kB / 405.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3639, allocations: 0 / 405.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04872/0.4126, allocations: 26.61 MB / 431.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002866/0.4129, allocations: 285.4 kB / 432.1 MB, free: 6.738 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.523/2.936, allocations: 0 / 432.1 MB, free: 6.738 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)