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.001044/0.001044, allocations: 94.72 kB / 16.3 MB, free: 6.074 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.001125/0.001126, allocations: 184.5 kB / 17.2 MB, free: 5.973 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.443/1.443, allocations: 223.2 MB / 241.1 MB, free: 14.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000393/0.0003932, allocations: 4 kB / 300.8 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1223, allocations: 50.42 MB / 351.2 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.00429/0.1266, allocations: 3.25 MB / 354.5 MB, free: 440 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003025/0.1297, allocations: 1.759 MB / 356.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003444/0.1301, allocations: 11.94 kB / 356.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001548/0.1316, allocations: 0.7909 MB / 357.1 MB, free: 13.86 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.0004302/0.1321, allocations: 175.5 kB / 357.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006448/0.1327, allocations: 218.9 kB / 357.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001036/0.1338, allocations: 0.726 MB / 358.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004681/0.1342, allocations: 272.3 kB / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005444/0.1348, allocations: 295 kB / 358.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000444/0.1353, allocations: 322.7 kB / 359 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.417e-05/0.1353, allocations: 32 kB / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002503/0.1356, allocations: 64 kB / 359.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003455/0.1359, allocations: 346.9 kB / 359.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.1362, allocations: 236.9 kB / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001511/0.1377, allocations: 1.231 MB / 360.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1377, allocations: 0 / 360.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1377, allocations: 0 / 360.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.1378, allocations: 4 kB / 360.9 MB, free: 9.961 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.002546/0.1403, allocations: 1.534 MB / 362.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.1404, allocations: 8.031 kB / 362.5 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001373/0.1405, allocations: 98.52 kB / 362.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000204/0.1407, allocations: 158.1 kB / 362.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001995/0.1427, allocations: 1.18 MB / 363.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000331/0.1431, allocations: 136.4 kB / 364 MB, free: 6.727 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.495e-05/0.1432, allocations: 59.94 kB / 364.1 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.1444, allocations: 0.6673 MB / 364.8 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.1444, allocations: 0 / 364.8 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.473e-05/0.1445, allocations: 24 kB / 364.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.1445, allocations: 12 kB / 364.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008716/0.1454, allocations: 451.7 kB / 365.2 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003918/0.1493, allocations: 2.532 MB / 367.8 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.1504, allocations: 470.5 kB / 368.2 MB, free: 2.375 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.1504, allocations: 7.984 kB / 368.2 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/0.1505, allocations: 38.56 kB / 368.3 MB, free: 2.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.704e-06/0.1505, allocations: 0 / 368.3 MB, free: 2.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002174/0.1526, allocations: 0.8964 MB / 369.2 MB, free: 1.395 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.1528, allocations: 265 kB / 369.4 MB, free: 1.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1961/0.3489, allocations: 1.524 MB / 371 MB, free: 23.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001193/0.349, allocations: 33.86 kB / 371 MB, free: 23.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006136/0.3497, allocations: 0.6445 MB / 371.6 MB, free: 23.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.3498, allocations: 109.3 kB / 371.7 MB, free: 23.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.987e-05/0.3498, allocations: 9.438 kB / 371.7 MB, free: 23.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.63e-05/0.3499, allocations: 317.8 kB / 372.1 MB, free: 23.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004846/0.3504, allocations: 183 kB / 372.2 MB, free: 23.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000555/0.3509, allocations: 319.8 kB / 372.6 MB, free: 22.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005329/0.3515, allocations: 217 kB / 372.8 MB, free: 22.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.3515, allocations: 0 / 372.8 MB, free: 22.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001395/0.3529, allocations: 0.6816 MB / 373.4 MB, free: 22.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.353, allocations: 5.875 kB / 373.4 MB, free: 22.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.353, allocations: 2.125 kB / 373.5 MB, free: 22.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003402/0.3533, allocations: 91.7 kB / 373.5 MB, free: 22.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000393/0.3537, allocations: 97.62 kB / 373.6 MB, free: 22.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001919/0.3556, allocations: 1.859 MB / 375.5 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005177/0.3562, allocations: 73.05 kB / 375.6 MB, free: 21.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.123e-05/0.3562, allocations: 16.05 kB / 375.6 MB, free: 21.13 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 (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0007089/0.3569, allocations: 485.8 kB / 376.1 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.3571, allocations: 138 kB / 376.2 MB, free: 20.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.3573, allocations: 160.9 kB / 376.3 MB, free: 20.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3573, allocations: 6.844 kB / 376.4 MB, free: 20.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3573, allocations: 4.906 kB / 376.4 MB, free: 20.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3573, allocations: 6.062 kB / 376.4 MB, free: 20.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009812/0.3583, allocations: 0.8595 MB / 377.2 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3583, allocations: 1.375 kB / 377.2 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003346/0.3587, allocations: 71.22 kB / 377.3 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000245/0.3589, allocations: 85.23 kB / 377.4 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.907e-05/0.359, allocations: 16.77 kB / 377.4 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001562/0.3605, allocations: 1.848 MB / 379.2 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3605, allocations: 4.031 kB / 379.2 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.3622, allocations: 0.9096 MB / 380.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003065/0.3625, allocations: 240.5 kB / 380.4 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.98e-05/0.3626, allocations: 12.47 kB / 380.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004542/0.3631, allocations: 64.81 kB / 380.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.96e-05/0.3632, allocations: 33.17 kB / 380.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/0.3632, allocations: 12.17 kB / 380.5 MB, free: 18.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00154/0.3648, allocations: 1.081 MB / 381.6 MB, free: 17.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3648, allocations: 0 / 381.6 MB, free: 17.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007127/0.3655, allocations: 178.7 kB / 381.8 MB, free: 17.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.002617/0.3681, allocations: 1.825 MB / 383.6 MB, free: 16.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.3693, allocations: 0.5579 MB / 384.2 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3693, allocations: 4 kB / 384.2 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005689/0.3699, allocations: 352.8 kB / 384.5 MB, free: 16.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007193/0.3706, allocations: 184.9 kB / 384.7 MB, free: 16.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01505/0.3857, allocations: 9.597 MB / 394.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008274/0.3866, allocations: 1.287 MB / 395.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006641/0.3872, allocations: 193.4 kB / 395.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004761/0.3877, allocations: 484.6 kB / 396.2 MB, free: 9.363 MB / 302.1 MB Notification: Performance of SimCode: time 1.253e-06/0.3877, allocations: 1.719 kB / 396.2 MB, free: 9.363 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04246/0.4302, allocations: 21.74 MB / 418 MB, free: 5.07 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002738/0.4305, allocations: 259.6 kB / 418.2 MB, free: 4.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.459/2.89, allocations: 0 / 418.2 MB, free: 4.73 MB / 318.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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat does not exist to compare? outputFormat=mat