Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001462/0.001462, allocations: 105.5 kB / 19.74 MB, free: 2.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001379/0.001379, allocations: 219.9 kB / 22.92 MB, free: 5.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.285/1.285, allocations: 230.5 MB / 256.4 MB, free: 8.43 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 63.89 kB / 376.1 MB, free: 4.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2315, allocations: 53.31 MB / 429.4 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.0124/0.2439, allocations: 11.36 MB / 440.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00587/0.2498, allocations: 3.957 MB / 444.7 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008521/0.2507, allocations: 31.81 kB / 444.7 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007868/0.2585, allocations: 5.74 MB / 450.5 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001477/0.26, allocations: 0.5278 MB / 451 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.2611, allocations: 0.5213 MB / 451.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02344/0.2845, allocations: 21.43 MB / 473 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008192/0.2927, allocations: 6.42 MB / 479.4 MB, free: 5.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05713/0.3498, allocations: 49.11 MB / 0.5161 GB, free: 4.086 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005742/0.3556, allocations: 3.954 MB / 0.52 GB, free: 120 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002195/0.3578, allocations: 0.9687 MB / 0.5209 GB, free: 15.14 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002599/0.3604, allocations: 1.019 MB / 0.5219 GB, free: 14.13 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003909/0.3643, allocations: 3.873 MB / 0.5257 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007551/0.3718, allocations: 5.185 MB / 0.5307 GB, free: 5.035 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1947/0.5665, allocations: 17.69 MB / 0.548 GB, free: 87.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.5665, allocations: 0.5 kB / 0.548 GB, free: 87.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5666, allocations: 0.8438 kB / 0.548 GB, free: 87.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005104/0.5671, allocations: 0 / 0.548 GB, free: 87.82 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.02746/0.5945, allocations: 12.79 MB / 0.5605 GB, free: 80.51 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.5946, allocations: 8.5 kB / 0.5605 GB, free: 80.51 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001737/0.5963, allocations: 0.6039 MB / 0.5611 GB, free: 80.1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002762/0.5991, allocations: 1.102 MB / 0.5622 GB, free: 79.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01742/0.6165, allocations: 11.28 MB / 0.5732 GB, free: 68.65 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004379/0.6169, allocations: 0.5466 MB / 0.5737 GB, free: 68.06 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001158/0.6181, allocations: 399.9 kB / 0.5741 GB, free: 67.67 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/0.6297, allocations: 8.536 MB / 0.5825 GB, free: 58.92 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.244e-05/0.6297, allocations: 11.28 kB / 0.5825 GB, free: 58.91 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005345/0.6303, allocations: 176 kB / 0.5826 GB, free: 58.74 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.96e-05/0.6303, allocations: 96 kB / 0.5827 GB, free: 58.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01/0.6403, allocations: 7.142 MB / 0.5897 GB, free: 51.52 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04248/0.6828, allocations: 28.62 MB / 0.6176 GB, free: 22.98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008/0.6908, allocations: 5.894 MB / 0.6234 GB, free: 17.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005084/0.6959, allocations: 4.128 MB / 0.6274 GB, free: 13.13 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.236e-05/0.696, allocations: 22 kB / 0.6275 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.606e-05/0.696, allocations: 83.61 kB / 0.6275 GB, free: 13.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=231): time 3.727e-06/0.696, allocations: 0 / 0.6275 GB, free: 13.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.01653/0.7126, allocations: 9.856 MB / 0.6372 GB, free: 3.152 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000189/0.7128, allocations: 1.3 MB / 0.6384 GB, free: 1.547 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02941/0.7422, allocations: 14.85 MB / 0.6529 GB, free: 2.723 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007913/0.743, allocations: 73.7 kB / 0.653 GB, free: 2.645 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006427/0.7494, allocations: 4.499 MB / 0.6574 GB, free: 14.23 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001258/0.7506, allocations: 0.8558 MB / 0.6582 GB, free: 13.39 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001248/0.7519, allocations: 0.6075 MB / 0.6588 GB, free: 12.77 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.752, allocations: 305.1 kB / 0.6591 GB, free: 12.47 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00494/0.7569, allocations: 2.966 MB / 0.662 GB, free: 9.504 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005839/0.7628, allocations: 4.019 MB / 0.6659 GB, free: 5.121 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01001/0.7728, allocations: 6.102 MB / 0.6719 GB, free: 14.84 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.525e-05/0.7728, allocations: 4 kB / 0.6719 GB, free: 14.83 MB / 494.1 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01503/0.7878, allocations: 7.717 MB / 0.6794 GB, free: 7.156 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.7879, allocations: 12 kB / 0.6794 GB, free: 7.145 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.828e-05/0.7879, allocations: 16 kB / 0.6795 GB, free: 7.129 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001315/0.7892, allocations: 0.5499 MB / 0.68 GB, free: 6.578 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003671/0.7929, allocations: 1.019 MB / 0.681 GB, free: 5.594 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00775/0.8006, allocations: 6.383 MB / 0.6872 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005804/0.8064, allocations: 0.8408 MB / 0.688 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000626/0.8071, allocations: 108 kB / 0.6882 GB, free: 14.14 MB / 0.4981 GB 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.008565/0.8156, allocations: 4.79 MB / 0.6928 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002657/0.8183, allocations: 0.9159 MB / 0.6937 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003862/0.8221, allocations: 1.31 MB / 0.695 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.929e-05/0.8222, allocations: 24 kB / 0.695 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-05/0.8222, allocations: 0 / 0.695 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.865e-05/0.8222, allocations: 15.95 kB / 0.695 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03133/0.8535, allocations: 15.93 MB / 0.7106 GB, free: 7.156 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.8535, allocations: 0 / 0.7106 GB, free: 7.156 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003101/0.8566, allocations: 0.85 MB / 0.7114 GB, free: 6.324 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.8577, allocations: 456.6 kB / 0.7119 GB, free: 5.875 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002888/0.858, allocations: 79.94 kB / 0.7119 GB, free: 5.797 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00639/0.8644, allocations: 5.494 MB / 0.7173 GB, free: 188 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.8644, allocations: 3.391 kB / 0.7173 GB, free: 188 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01805/0.8825, allocations: 9.878 MB / 0.727 GB, free: 6.277 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005897/0.8884, allocations: 2.275 MB / 0.7292 GB, free: 3.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002544/0.8909, allocations: 87.92 kB / 0.7293 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005146/0.896, allocations: 0.8545 MB / 0.7301 GB, free: 3.035 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00124/0.8973, allocations: 489.3 kB / 0.7306 GB, free: 2.559 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002897/0.8976, allocations: 68 kB / 0.7306 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.2122/1.11, allocations: 10.58 MB / 0.741 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.61e-07/1.11, allocations: 0 / 0.741 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005668/1.115, allocations: 1.556 MB / 0.7425 GB, free: 178.8 MB / 0.5294 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.01542/1.131, allocations: 10.93 MB / 0.7532 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008489/1.139, allocations: 6.356 MB / 0.7594 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/1.139, allocations: 6 kB / 0.7594 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004019/1.143, allocations: 3.294 MB / 0.7626 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00894/1.152, allocations: 2.203 MB / 0.7647 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.163/1.315, allocations: 107.4 MB / 0.8697 GB, free: 57.53 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006669/1.322, allocations: 6.768 MB / 0.8763 GB, free: 50.73 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006918/1.329, allocations: 3.339 MB / 0.8795 GB, free: 47.38 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005963/1.335, allocations: 3.66 MB / 0.8831 GB, free: 43.72 MB / 0.5294 GB Notification: Performance of SimCode: time 1.001e-06/1.335, allocations: 0 / 0.8831 GB, free: 43.72 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4281/1.763, allocations: 213.8 MB / 1.092 GB, free: 53.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.88/33.64, allocations: 3.859 kB / 1.092 GB, free: 53.4 MB / 0.545 GB " [Timeout remaining time 626] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 36.60421084099653]