Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001817/0.001817, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00227/0.00227, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 247 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001747/0.001747, allocations: 63.89 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2808, allocations: 50.56 MB / 408.8 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01297/0.2938, allocations: 11.27 MB / 420.1 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006566/0.3004, allocations: 3.93 MB / 424 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001181/0.3016, allocations: 31.88 kB / 424 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008497/0.3101, allocations: 5.681 MB / 429.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002449/0.3127, allocations: 0.5122 MB / 430.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001481/0.3142, allocations: 0.5262 MB / 430.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02643/0.3406, allocations: 21.26 MB / 452 MB, free: 6.137 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01295/0.3536, allocations: 9.459 MB / 461.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05713/0.4108, allocations: 48.42 MB / 0.498 GB, free: 12.11 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00641/0.4173, allocations: 3.904 MB / 0.5018 GB, free: 8.191 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002488/0.4198, allocations: 0.9648 MB / 0.5027 GB, free: 7.227 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00332/0.4231, allocations: 1.023 MB / 0.5037 GB, free: 6.203 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004009/0.4272, allocations: 3.85 MB / 0.5075 GB, free: 2.344 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007975/0.4352, allocations: 5.181 MB / 0.5125 GB, free: 13.14 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01897/0.4542, allocations: 17.7 MB / 0.5298 GB, free: 11.38 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.4542, allocations: 0 / 0.5298 GB, free: 11.38 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4542, allocations: 0 / 0.5298 GB, free: 11.38 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004395/0.4546, allocations: 7.938 kB / 0.5298 GB, free: 11.37 MB / 462.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.4305/0.8851, allocations: 12.78 MB / 0.5423 GB, free: 120.2 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.8852, allocations: 9.438 kB / 0.5423 GB, free: 120.2 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002295/0.8875, allocations: 0.6033 MB / 0.5429 GB, free: 119.9 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003511/0.891, allocations: 1.106 MB / 0.544 GB, free: 119.3 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01794/0.909, allocations: 11.28 MB / 0.555 GB, free: 112.4 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004768/0.9095, allocations: 0.5428 MB / 0.5555 GB, free: 111.8 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001118/0.9106, allocations: 396 kB / 0.5559 GB, free: 111.4 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01454/0.9252, allocations: 8.555 MB / 0.5643 GB, free: 102.6 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.989e-05/0.9253, allocations: 4 kB / 0.5643 GB, free: 102.6 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007027/0.926, allocations: 176 kB / 0.5644 GB, free: 102.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.287e-05/0.9261, allocations: 96 kB / 0.5645 GB, free: 102.4 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01145/0.9375, allocations: 7.142 MB / 0.5715 GB, free: 95.23 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04642/0.984, allocations: 28.62 MB / 0.5994 GB, free: 66.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008238/0.9923, allocations: 6.083 MB / 0.6054 GB, free: 60.56 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005554/0.9978, allocations: 4.324 MB / 0.6096 GB, free: 56.24 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001349/0.998, allocations: 22 kB / 0.6096 GB, free: 56.22 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.272e-05/0.9981, allocations: 81 kB / 0.6097 GB, free: 56.13 MB / 462.1 MB Notification: Performance of pre-optimization done (n=231): time 4.128e-06/0.9981, allocations: 0 / 0.6097 GB, free: 56.13 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.01972/1.018, allocations: 9.877 MB / 0.6194 GB, free: 46.21 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002353/1.018, allocations: 1.296 MB / 0.6206 GB, free: 44.61 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02051/1.039, allocations: 14.84 MB / 0.6351 GB, free: 29.82 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006776/1.039, allocations: 77.7 kB / 0.6352 GB, free: 29.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004028/1.043, allocations: 4.479 MB / 0.6396 GB, free: 25.44 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001036/1.044, allocations: 0.8572 MB / 0.6404 GB, free: 24.67 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00119/1.046, allocations: 0.6153 MB / 0.641 GB, free: 24.05 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.183e-05/1.046, allocations: 309.1 kB / 0.6413 GB, free: 23.75 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003987/1.05, allocations: 2.964 MB / 0.6442 GB, free: 20.78 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004647/1.054, allocations: 4.015 MB / 0.6481 GB, free: 16.39 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007987/1.062, allocations: 6.101 MB / 0.6541 GB, free: 10.04 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.609e-05/1.062, allocations: 4 kB / 0.6541 GB, free: 10.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01229/1.075, allocations: 7.727 MB / 0.6616 GB, free: 2.254 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/1.075, allocations: 12.16 kB / 0.6616 GB, free: 2.242 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/1.075, allocations: 24 kB / 0.6616 GB, free: 2.219 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/1.076, allocations: 0.543 MB / 0.6622 GB, free: 1.672 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003345/1.079, allocations: 1.01 MB / 0.6632 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00834/1.088, allocations: 6.385 MB / 0.6694 GB, free: 10.13 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006173/1.094, allocations: 0.8447 MB / 0.6702 GB, free: 9.285 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000632/1.094, allocations: 100 kB / 0.6703 GB, free: 9.188 MB / 478.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.008529/1.103, allocations: 4.794 MB / 0.675 GB, free: 4.379 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002976/1.106, allocations: 0.9121 MB / 0.6759 GB, free: 3.461 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004533/1.111, allocations: 1.314 MB / 0.6772 GB, free: 2.141 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.557e-05/1.111, allocations: 27.75 kB / 0.6772 GB, free: 2.117 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-05/1.111, allocations: 7.938 kB / 0.6772 GB, free: 2.109 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.127e-05/1.111, allocations: 11.95 kB / 0.6772 GB, free: 2.098 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03413/1.145, allocations: 15.95 MB / 0.6928 GB, free: 2.062 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/1.145, allocations: 0 / 0.6928 GB, free: 2.062 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003224/1.148, allocations: 0.8465 MB / 0.6936 GB, free: 1.215 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001101/1.149, allocations: 456.5 kB / 0.6941 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000274/1.149, allocations: 83.95 kB / 0.6941 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006864/1.156, allocations: 5.493 MB / 0.6995 GB, free: 11.05 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/1.156, allocations: 192 / 0.6995 GB, free: 11.05 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01866/1.175, allocations: 9.886 MB / 0.7092 GB, free: 1.117 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006248/1.181, allocations: 2.275 MB / 0.7114 GB, free: 14.82 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002246/1.184, allocations: 87.97 kB / 0.7115 GB, free: 14.73 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005562/1.189, allocations: 0.8584 MB / 0.7123 GB, free: 13.87 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001525/1.191, allocations: 493.2 kB / 0.7128 GB, free: 13.39 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003784/1.191, allocations: 60 kB / 0.7128 GB, free: 13.33 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.02225/1.213, allocations: 10.59 MB / 0.7232 GB, free: 2.777 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.71e-07/1.213, allocations: 0 / 0.7232 GB, free: 2.777 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007254/1.221, allocations: 1.56 MB / 0.7247 GB, free: 1.215 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.02211/1.243, allocations: 10.93 MB / 0.7354 GB, free: 6.398 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2263/1.469, allocations: 6.47 MB / 0.7417 GB, free: 192.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-05/1.469, allocations: 7.75 kB / 0.7417 GB, free: 192.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006852/1.476, allocations: 3.393 MB / 0.745 GB, free: 192.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01075/1.487, allocations: 2.194 MB / 0.7472 GB, free: 191.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1746/1.662, allocations: 107.3 MB / 0.852 GB, free: 92.79 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008564/1.67, allocations: 6.764 MB / 0.8586 GB, free: 85.99 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007335/1.678, allocations: 3.347 MB / 0.8619 GB, free: 82.64 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00637/1.684, allocations: 3.659 MB / 0.8654 GB, free: 78.98 MB / 0.5294 GB Notification: Performance of SimCode: time 9.51e-07/1.684, allocations: 4 kB / 0.8654 GB, free: 78.98 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4773/2.161, allocations: 212.8 MB / 1.073 GB, free: 59.81 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 36.57/38.73, allocations: 5.188 kB / 1.073 GB, free: 59.81 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1)