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.001117/0.001117, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001626/0.001626, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 60.66 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1049, allocations: 50.52 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01355/0.1185, allocations: 11.27 MB / 368.8 MB, free: 2.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1908/0.3093, allocations: 3.925 MB / 372.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00111/0.3105, allocations: 32.34 kB / 372.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01022/0.3207, allocations: 5.676 MB / 378.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001941/0.3227, allocations: 0.5108 MB / 379 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001689/0.3244, allocations: 0.5181 MB / 379.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02371/0.3482, allocations: 21.23 MB / 400.7 MB, free: 40 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01199/0.3602, allocations: 9.444 MB / 410.2 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05329/0.4135, allocations: 48.44 MB / 458.6 MB, free: 6.441 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006223/0.4198, allocations: 3.899 MB / 462.5 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002783/0.4226, allocations: 0.9648 MB / 463.5 MB, free: 1.578 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003724/0.4263, allocations: 1.022 MB / 464.5 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004218/0.4306, allocations: 3.85 MB / 468.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00782/0.4384, allocations: 5.179 MB / 473.5 MB, free: 7.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01612/0.4546, allocations: 17.47 MB / 491 MB, free: 6.281 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4546, allocations: 0 / 491 MB, free: 6.281 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4546, allocations: 0 / 491 MB, free: 6.281 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005316/0.4552, allocations: 0 / 491 MB, free: 6.281 MB / 398.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.03099/0.4862, allocations: 12.46 MB / 0.4917 GB, free: 9.742 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.4862, allocations: 8.031 kB / 0.4917 GB, free: 9.734 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001947/0.4882, allocations: 0.6056 MB / 0.4923 GB, free: 9.121 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003085/0.4913, allocations: 1.047 MB / 0.4933 GB, free: 8.062 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01795/0.5092, allocations: 11.06 MB / 0.5041 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001698/0.511, allocations: 0.9678 MB / 0.505 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/0.5121, allocations: 399.9 kB / 0.5054 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01242/0.5245, allocations: 8.544 MB / 0.5137 GB, free: 2.934 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.663e-05/0.5246, allocations: 7.938 kB / 0.5138 GB, free: 2.926 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004638/0.525, allocations: 180 kB / 0.5139 GB, free: 2.75 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.846e-05/0.5251, allocations: 99.94 kB / 0.514 GB, free: 2.652 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009978/0.5351, allocations: 7.138 MB / 0.521 GB, free: 11.51 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3818/0.9169, allocations: 28.76 MB / 0.5491 GB, free: 127.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01799/0.9349, allocations: 6.078 MB / 0.555 GB, free: 125.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006793/0.9417, allocations: 4.292 MB / 0.5592 GB, free: 123.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002204/0.942, allocations: 28.91 kB / 0.5592 GB, free: 123.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001157/0.9421, allocations: 81.16 kB / 0.5593 GB, free: 123.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=231): time 5.16e-06/0.9421, allocations: 0 / 0.5593 GB, free: 123.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.01998/0.9621, allocations: 9.808 MB / 0.5689 GB, free: 119.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000248/0.9624, allocations: 1.299 MB / 0.5702 GB, free: 118.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02689/0.9893, allocations: 14.84 MB / 0.5846 GB, free: 103.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007143/0.9901, allocations: 81.7 kB / 0.5847 GB, free: 103.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005267/0.9953, allocations: 4.446 MB / 0.5891 GB, free: 99.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001189/0.9966, allocations: 0.8051 MB / 0.5899 GB, free: 98.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001081/0.9976, allocations: 0.6189 MB / 0.5905 GB, free: 98.11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.598e-05/0.9977, allocations: 309 kB / 0.5908 GB, free: 97.81 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004015/1.002, allocations: 2.96 MB / 0.5936 GB, free: 94.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004328/1.006, allocations: 4.012 MB / 0.5976 GB, free: 90.47 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007479/1.014, allocations: 6.085 MB / 0.6035 GB, free: 84.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/1.014, allocations: 4 kB / 0.6035 GB, free: 84.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01172/1.025, allocations: 7.676 MB / 0.611 GB, free: 76.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/1.025, allocations: 19.17 kB / 0.611 GB, free: 76.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/1.025, allocations: 18.16 kB / 0.611 GB, free: 76.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/1.026, allocations: 0.5469 MB / 0.6116 GB, free: 75.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002953/1.029, allocations: 1.014 MB / 0.6126 GB, free: 74.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005574/1.035, allocations: 6.386 MB / 0.6188 GB, free: 68.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005057/1.04, allocations: 0.8399 MB / 0.6196 GB, free: 67.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004275/1.041, allocations: 100 kB / 0.6197 GB, free: 67.38 MB / 446.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.007805/1.048, allocations: 4.797 MB / 0.6244 GB, free: 62.57 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003163/1.051, allocations: 0.8641 MB / 0.6252 GB, free: 61.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003495/1.055, allocations: 1.318 MB / 0.6265 GB, free: 60.38 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.736e-05/1.055, allocations: 23.94 kB / 0.6266 GB, free: 60.35 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.18e-05/1.055, allocations: 7.5 kB / 0.6266 GB, free: 60.35 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.911e-05/1.055, allocations: 11.95 kB / 0.6266 GB, free: 60.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02963/1.085, allocations: 15.95 MB / 0.6422 GB, free: 44.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/1.085, allocations: 5.422 kB / 0.6422 GB, free: 44.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002726/1.088, allocations: 0.8355 MB / 0.643 GB, free: 43.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000969/1.088, allocations: 468.5 kB / 0.6434 GB, free: 43.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002317/1.089, allocations: 79.95 kB / 0.6435 GB, free: 42.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004924/1.094, allocations: 5.493 MB / 0.6489 GB, free: 37.33 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/1.094, allocations: 4 kB / 0.6489 GB, free: 37.33 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01402/1.108, allocations: 9.817 MB / 0.6585 GB, free: 27.47 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004511/1.112, allocations: 2.224 MB / 0.6606 GB, free: 25.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002243/1.115, allocations: 91.97 kB / 0.6607 GB, free: 25.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004466/1.119, allocations: 0.8584 MB / 0.6616 GB, free: 24.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009617/1.12, allocations: 457.2 kB / 0.662 GB, free: 23.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002207/1.12, allocations: 63.98 kB / 0.662 GB, free: 23.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01813/1.138, allocations: 10.58 MB / 0.6724 GB, free: 13.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.01e-07/1.138, allocations: 0 / 0.6724 GB, free: 13.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005529/1.144, allocations: 1.551 MB / 0.6739 GB, free: 11.65 MB / 446.1 MB 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.01517/1.159, allocations: 10.89 MB / 0.6845 GB, free: 0.918 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02214/1.181, allocations: 12.7 MB / 0.6969 GB, free: 4.223 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.848e-05/1.181, allocations: 8.516 kB / 0.6969 GB, free: 4.219 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00586/1.187, allocations: 3.38 MB / 0.7002 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1908/1.378, allocations: 2.183 MB / 0.7024 GB, free: 149.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2058/1.584, allocations: 154.1 MB / 0.8528 GB, free: 7.395 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009541/1.593, allocations: 6.761 MB / 0.8594 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.009431/1.603, allocations: 3.352 MB / 0.8627 GB, free: 13.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007718/1.611, allocations: 3.663 MB / 0.8663 GB, free: 9.582 MB / 478.1 MB Notification: Performance of SimCode: time 1.022e-06/1.611, allocations: 3.562 kB / 0.8663 GB, free: 9.582 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.719/2.33, allocations: 217.1 MB / 1.078 GB, free: 133.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.32/18.65, allocations: 3.172 kB / 1.078 GB, free: 133.6 MB / 478.1 MB (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)