Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.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.CCCV_StackRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",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.001286/0.001286, allocations: 111.9 kB / 17.06 MB, free: 6.012 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.001186/0.001186, allocations: 195.9 kB / 18 MB, free: 5.094 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.424/1.424, allocations: 222.9 MB / 241.7 MB, free: 15.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001994/0.001994, allocations: 51.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.299, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01407/0.3131, allocations: 11.22 MB / 411.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00676/0.3199, allocations: 3.778 MB / 415.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001311/0.3213, allocations: 27.88 kB / 415.3 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008888/0.3302, allocations: 5.787 MB / 421 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002449/0.3328, allocations: 492.6 kB / 421.5 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.3343, allocations: 0.5136 MB / 422 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02761/0.3619, allocations: 21.61 MB / 443.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01276/0.3747, allocations: 9.564 MB / 453.2 MB, free: 3.645 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05927/0.434, allocations: 49.82 MB / 0.4912 GB, free: 1.766 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006467/0.4405, allocations: 3.896 MB / 0.495 GB, free: 13.85 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002752/0.4433, allocations: 0.957 MB / 0.496 GB, free: 12.89 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003507/0.4468, allocations: 1.027 MB / 0.497 GB, free: 11.87 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004997/0.4519, allocations: 3.85 MB / 0.5007 GB, free: 8.012 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009789/0.4617, allocations: 5.17 MB / 0.5058 GB, free: 2.816 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02221/0.4839, allocations: 17.66 MB / 0.523 GB, free: 1.098 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.484, allocations: 0 / 0.523 GB, free: 1.098 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.484, allocations: 0 / 0.523 GB, free: 1.098 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005488/0.4845, allocations: 0 / 0.523 GB, free: 1.098 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.03799/0.5226, allocations: 12.73 MB / 0.5355 GB, free: 4.25 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/0.5226, allocations: 8.031 kB / 0.5355 GB, free: 4.242 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003203/0.5258, allocations: 0.6133 MB / 0.5361 GB, free: 3.621 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00518/0.531, allocations: 1.099 MB / 0.5372 GB, free: 2.516 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4471/0.9781, allocations: 11.23 MB / 0.5481 GB, free: 124.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005139/0.9787, allocations: 0.5533 MB / 0.5487 GB, free: 124.2 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001332/0.98, allocations: 398 kB / 0.549 GB, free: 124 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01346/0.9935, allocations: 8.553 MB / 0.5574 GB, free: 116.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.9937, allocations: 7.938 kB / 0.5574 GB, free: 116.8 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008636/0.9945, allocations: 176 kB / 0.5576 GB, free: 116.6 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.955e-05/0.9946, allocations: 99.94 kB / 0.5577 GB, free: 116.5 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01064/1.005, allocations: 7.138 MB / 0.5646 GB, free: 109.3 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05275/1.058, allocations: 28.61 MB / 0.5926 GB, free: 80.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01003/1.068, allocations: 6.09 MB / 0.5985 GB, free: 74.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006271/1.074, allocations: 4.313 MB / 0.6027 GB, free: 70.46 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001944/1.075, allocations: 22 kB / 0.6028 GB, free: 70.44 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.106e-05/1.075, allocations: 88.98 kB / 0.6028 GB, free: 70.34 MB / 462.1 MB Notification: Performance of pre-optimization done (n=231): time 4.919e-06/1.075, allocations: 0 / 0.6028 GB, free: 70.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.02064/1.095, allocations: 9.868 MB / 0.6125 GB, free: 60.43 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003625/1.096, allocations: 1.296 MB / 0.6137 GB, free: 58.83 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02901/1.125, allocations: 14.73 MB / 0.6281 GB, free: 44.14 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008943/1.126, allocations: 81.7 kB / 0.6282 GB, free: 44.05 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004328/1.13, allocations: 4.45 MB / 0.6325 GB, free: 39.79 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001154/1.131, allocations: 0.8458 MB / 0.6334 GB, free: 39.04 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001266/1.132, allocations: 0.6192 MB / 0.634 GB, free: 38.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.156e-05/1.133, allocations: 305.1 kB / 0.6343 GB, free: 38.11 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003984/1.137, allocations: 2.96 MB / 0.6372 GB, free: 35.14 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00442/1.141, allocations: 4.021 MB / 0.6411 GB, free: 30.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007631/1.149, allocations: 6.093 MB / 0.647 GB, free: 24.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/1.149, allocations: 8 kB / 0.647 GB, free: 24.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01226/1.161, allocations: 7.728 MB / 0.6546 GB, free: 16.62 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/1.161, allocations: 11.94 kB / 0.6546 GB, free: 16.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/1.161, allocations: 16.06 kB / 0.6546 GB, free: 16.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001131/1.162, allocations: 0.5509 MB / 0.6552 GB, free: 16.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002962/1.165, allocations: 1.006 MB / 0.6561 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005756/1.171, allocations: 6.402 MB / 0.6624 GB, free: 8.504 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005644/1.177, allocations: 0.8474 MB / 0.6632 GB, free: 7.719 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003858/1.177, allocations: 104 kB / 0.6633 GB, free: 7.617 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (308): * Single equations (assignments): 307 * 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 {(3,38)} Notification: Performance of prepare postOptimizeDAE: time 0.007777/1.185, allocations: 4.767 MB / 0.668 GB, free: 2.832 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002748/1.187, allocations: 0.9082 MB / 0.6689 GB, free: 1.918 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003516/1.191, allocations: 1.305 MB / 0.6701 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.5e-05/1.191, allocations: 24 kB / 0.6702 GB, free: 0.582 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/1.191, allocations: 0 / 0.6702 GB, free: 0.582 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.273e-05/1.191, allocations: 11.95 kB / 0.6702 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03635/1.227, allocations: 15.92 MB / 0.6857 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/1.227, allocations: 3.984 kB / 0.6857 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003469/1.231, allocations: 0.8465 MB / 0.6865 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/1.232, allocations: 461.1 kB / 0.687 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004209/1.233, allocations: 75.97 kB / 0.6871 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007601/1.24, allocations: 5.497 MB / 0.6924 GB, free: 9.547 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/1.24, allocations: 4 kB / 0.6924 GB, free: 9.543 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02072/1.261, allocations: 9.874 MB / 0.7021 GB, free: 15.62 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00779/1.269, allocations: 2.279 MB / 0.7043 GB, free: 13.32 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002959/1.272, allocations: 83.97 kB / 0.7044 GB, free: 13.24 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005917/1.278, allocations: 0.8584 MB / 0.7052 GB, free: 12.38 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001291/1.279, allocations: 485.3 kB / 0.7057 GB, free: 11.91 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005069/1.28, allocations: 63.98 kB / 0.7057 GB, free: 11.84 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.02559/1.305, allocations: 10.51 MB / 0.716 GB, free: 1.367 MB / 0.4982 GB Notification: Performance of sort global known variables: time 7.42e-07/1.305, allocations: 0 / 0.716 GB, free: 1.367 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.008763/1.314, allocations: 1.568 MB / 0.7175 GB, free: 15.79 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].limIntegrator.y,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 (201): * Single equations (assignments): 200 * 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 {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02511/1.339, allocations: 10.93 MB / 0.7282 GB, free: 5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.2504/1.59, allocations: 6.475 MB / 0.7345 GB, free: 184.8 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.877e-05/1.59, allocations: 7.719 kB / 0.7345 GB, free: 184.8 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005735/1.596, allocations: 3.392 MB / 0.7379 GB, free: 184.3 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01075/1.606, allocations: 2.203 MB / 0.74 GB, free: 183.7 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1852/1.792, allocations: 107.4 MB / 0.8449 GB, free: 81.91 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01138/1.803, allocations: 6.749 MB / 0.8515 GB, free: 75.14 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.009312/1.812, allocations: 3.335 MB / 0.8547 GB, free: 71.79 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008586/1.821, allocations: 3.639 MB / 0.8583 GB, free: 68.16 MB / 0.5138 GB Notification: Performance of SimCode: time 2.254e-06/1.821, allocations: 0 / 0.8583 GB, free: 68.16 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4984/2.319, allocations: 212.5 MB / 1.066 GB, free: 71.31 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.05/37.37, allocations: 20.08 kB / 1.066 GB, free: 71.3 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1)