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_Stack.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.001337/0.001337, allocations: 105 kB / 19.74 MB, free: 2.453 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.001616/0.001616, allocations: 217.8 kB / 22.92 MB, free: 5.195 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.294/1.294, allocations: 230.5 MB / 256.4 MB, free: 8.258 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_Stack,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack",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.001794/0.001794, allocations: 63.89 kB / 376.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.2207, allocations: 53.31 MB / 429.4 MB, free: 7.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01117/0.2319, allocations: 10.18 MB / 439.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005608/0.2375, allocations: 3.661 MB / 443.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007755/0.2383, allocations: 23.94 kB / 443.2 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002311/0.2406, allocations: 1.19 MB / 444.4 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00133/0.2419, allocations: 0.688 MB / 445.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009586/0.2429, allocations: 494.3 kB / 445.6 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007185/0.2501, allocations: 7.309 MB / 452.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002604/0.2527, allocations: 2.091 MB / 455 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003159/0.2558, allocations: 2.867 MB / 457.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003798/0.2596, allocations: 2.981 MB / 460.9 MB, free: 7.793 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001258/0.2609, allocations: 0.6835 MB / 461.5 MB, free: 7.109 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001376/0.2623, allocations: 0.7226 MB / 462.3 MB, free: 6.387 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004636/0.2669, allocations: 5.829 MB / 468.1 MB, free: 0.543 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008864/0.2758, allocations: 7.195 MB / 475.3 MB, free: 9.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02287/0.2986, allocations: 25.01 MB / 0.4886 GB, free: 224 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.2986, allocations: 0 / 0.4886 GB, free: 224 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2986, allocations: 0 / 0.4886 GB, free: 224 kB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007097/0.2994, allocations: 7.922 kB / 0.4886 GB, free: 216 kB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.04285/0.3422, allocations: 19.23 MB / 0.5074 GB, free: 12.82 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.3423, allocations: 8.031 kB / 0.5074 GB, free: 12.82 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009796/0.3432, allocations: 0.4918 MB / 0.5078 GB, free: 12.31 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004048/0.3473, allocations: 1.639 MB / 0.5094 GB, free: 10.66 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03433/0.3816, allocations: 17.91 MB / 0.5269 GB, free: 8.676 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004406/0.382, allocations: 336.2 kB / 0.5273 GB, free: 8.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008728/0.3829, allocations: 328 kB / 0.5276 GB, free: 8.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01175/0.3947, allocations: 6.495 MB / 0.5339 GB, free: 1.297 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.119e-05/0.3947, allocations: 4 kB / 0.5339 GB, free: 1.293 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004325/0.3952, allocations: 144 kB / 0.5341 GB, free: 1.152 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.639e-05/0.3952, allocations: 87.94 kB / 0.5341 GB, free: 1.066 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1851/0.5803, allocations: 5.12 MB / 0.5391 GB, free: 83.69 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04673/0.627, allocations: 33.45 MB / 0.5718 GB, free: 59.79 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006114/0.6331, allocations: 4.178 MB / 0.5759 GB, free: 55.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00332/0.6365, allocations: 2.475 MB / 0.5783 GB, free: 53.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.737e-05/0.6365, allocations: 19.97 kB / 0.5783 GB, free: 53.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.598e-05/0.6366, allocations: 67.88 kB / 0.5784 GB, free: 53.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.556e-06/0.6366, allocations: 3.984 kB / 0.5784 GB, free: 53.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.015/0.6516, allocations: 7.59 MB / 0.5858 GB, free: 45.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001584/0.6517, allocations: 0.9824 MB / 0.5868 GB, free: 44.74 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05303/0.7048, allocations: 35.89 MB / 0.6218 GB, free: 8.934 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004366/0.7052, allocations: 61.7 kB / 0.6219 GB, free: 8.867 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.009131/0.7143, allocations: 7.535 MB / 0.6292 GB, free: 1.324 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006212/0.715, allocations: 0.5746 MB / 0.6298 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006372/0.7156, allocations: 427.4 kB / 0.6302 GB, free: 340 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.975e-05/0.7156, allocations: 314.4 kB / 0.6305 GB, free: 24 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003646/0.7193, allocations: 1.967 MB / 0.6324 GB, free: 14.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004306/0.7236, allocations: 2.853 MB / 0.6352 GB, free: 10.88 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007102/0.7307, allocations: 4.207 MB / 0.6393 GB, free: 6.465 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.7307, allocations: 8 kB / 0.6393 GB, free: 6.457 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01454/0.7452, allocations: 6.091 MB / 0.6453 GB, free: 352 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/0.7453, allocations: 12 kB / 0.6453 GB, free: 340 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.746e-05/0.7453, allocations: 16 kB / 0.6453 GB, free: 324 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009899/0.7463, allocations: 359.8 kB / 0.6456 GB, free: 15.96 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002456/0.7487, allocations: 0.698 MB / 0.6463 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005642/0.7544, allocations: 4.618 MB / 0.6508 GB, free: 10.51 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006578/0.761, allocations: 0.6693 MB / 0.6515 GB, free: 9.836 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003508/0.7613, allocations: 75.17 kB / 0.6515 GB, free: 9.766 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * 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 (222): * Single equations (assignments): 221 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.01269/0.774, allocations: 8.139 MB / 0.6595 GB, free: 1.613 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004909/0.7789, allocations: 1.473 MB / 0.6609 GB, free: 136 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01356/0.7925, allocations: 6.028 MB / 0.6668 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/0.7925, allocations: 12 kB / 0.6668 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.7925, allocations: 11.94 kB / 0.6668 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/0.7925, allocations: 11.97 kB / 0.6669 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03968/0.8322, allocations: 18.57 MB / 0.685 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.8322, allocations: 0 / 0.685 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001941/0.8342, allocations: 0.5616 MB / 0.6855 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007802/0.8349, allocations: 302.8 kB / 0.6858 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000133/0.8351, allocations: 39.98 kB / 0.6859 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004772/0.8398, allocations: 4.029 MB / 0.6898 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.8398, allocations: 48 / 0.6898 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01564/0.8555, allocations: 7.703 MB / 0.6973 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009937/0.8654, allocations: 4.267 MB / 0.7015 GB, free: 6.305 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004017/0.8694, allocations: 44 kB / 0.7015 GB, free: 6.262 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006358/0.8758, allocations: 0.6591 MB / 0.7022 GB, free: 5.602 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009777/0.8768, allocations: 432.7 kB / 0.7026 GB, free: 5.176 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/0.8769, allocations: 43.98 kB / 0.7026 GB, free: 5.133 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.05022/0.9271, allocations: 25.67 MB / 0.7277 GB, free: 11.53 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.41e-07/0.9271, allocations: 0 / 0.7277 GB, free: 11.53 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009833/0.937, allocations: 1.842 MB / 0.7295 GB, free: 9.688 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,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 (136): * Single equations (assignments): 135 * 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,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01917/0.9561, allocations: 8.659 MB / 0.738 GB, free: 1.125 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008335/0.9645, allocations: 4.402 MB / 0.7422 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/0.9645, allocations: 7.156 kB / 0.7423 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004018/0.9685, allocations: 2.217 MB / 0.7444 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01552/0.984, allocations: 2.096 MB / 0.7465 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.702/1.686, allocations: 226.4 MB / 0.9676 GB, free: 6.117 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2036/1.89, allocations: 10.19 MB / 0.9775 GB, free: 199.2 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01375/1.903, allocations: 7.695 MB / 0.985 GB, free: 198 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01117/1.915, allocations: 6.095 MB / 0.991 GB, free: 192.6 MB / 0.5607 GB Notification: Performance of SimCode: time 1.663e-06/1.915, allocations: 4.812 kB / 0.991 GB, free: 192.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5766/2.491, allocations: 331.2 MB / 1.314 GB, free: 61.93 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 68.96/71.45, allocations: 9.891 kB / 1.314 GB, free: 61.93 MB / 0.5607 GB " [Timeout remaining time 588] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 74.88482486899738]