Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|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",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|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",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001658/0.001658, allocations: 114.3 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002491/0.002491, allocations: 210.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 59.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2765, allocations: 50.55 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01015/0.2867, allocations: 10.08 MB / 420 MB, free: 7.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004743/0.2915, allocations: 3.623 MB / 423.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004729/0.292, allocations: 23.94 kB / 423.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001974/0.294, allocations: 1.19 MB / 424.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009573/0.2949, allocations: 0.6684 MB / 425.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008322/0.2958, allocations: 482.8 kB / 426 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006034/0.3018, allocations: 7.345 MB / 433.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004325/0.3062, allocations: 4.478 MB / 437.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003171/0.3093, allocations: 2.855 MB / 440.7 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002976/0.3123, allocations: 2.931 MB / 443.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00102/0.3134, allocations: 0.6875 MB / 444.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001228/0.3146, allocations: 0.7226 MB / 445 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004124/0.3187, allocations: 5.818 MB / 450.8 MB, free: 8.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01056/0.3293, allocations: 7.187 MB / 458 MB, free: 1.293 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0241/0.3534, allocations: 24.93 MB / 482.9 MB, free: 8.297 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3535, allocations: 0 / 482.9 MB, free: 8.297 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3535, allocations: 0 / 482.9 MB, free: 8.297 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005913/0.3541, allocations: 0 / 482.9 MB, free: 8.297 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: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.04893/0.403, allocations: 18.69 MB / 0.4899 GB, free: 5.449 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.4031, allocations: 8.031 kB / 0.4899 GB, free: 5.441 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004562/0.4077, allocations: 1.559 MB / 0.4914 GB, free: 3.863 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0393/0.447, allocations: 17.77 MB / 0.5088 GB, free: 2.004 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003949/0.4474, allocations: 340.2 kB / 0.5091 GB, free: 1.664 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008326/0.4482, allocations: 320 kB / 0.5094 GB, free: 1.352 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01279/0.461, allocations: 6.499 MB / 0.5157 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.065e-05/0.4612, allocations: 4 kB / 0.5157 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004324/0.4616, allocations: 144 kB / 0.5159 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-05/0.4617, allocations: 84 kB / 0.516 GB, free: 10.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009/0.4707, allocations: 5.119 MB / 0.521 GB, free: 5.27 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4656/0.9363, allocations: 33.42 MB / 0.5536 GB, free: 100.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006158/0.9425, allocations: 4.314 MB / 0.5578 GB, free: 98.41 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003398/0.9459, allocations: 2.585 MB / 0.5603 GB, free: 97.29 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.414e-05/0.946, allocations: 19.19 kB / 0.5604 GB, free: 97.29 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.018e-05/0.9461, allocations: 62.22 kB / 0.5604 GB, free: 97.23 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.737e-06/0.9461, allocations: 1.688 kB / 0.5604 GB, free: 97.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01492/0.961, allocations: 7.527 MB / 0.5678 GB, free: 91.68 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001666/0.9612, allocations: 0.9863 MB / 0.5687 GB, free: 90.46 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05345/1.015, allocations: 35.88 MB / 0.6038 GB, free: 54.69 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004713/1.015, allocations: 69.27 kB / 0.6038 GB, free: 54.62 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.008909/1.024, allocations: 7.495 MB / 0.6112 GB, free: 47.32 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005971/1.025, allocations: 0.5428 MB / 0.6117 GB, free: 46.78 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006521/1.025, allocations: 431 kB / 0.6121 GB, free: 46.35 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.127e-05/1.025, allocations: 301.1 kB / 0.6124 GB, free: 46.05 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002937/1.028, allocations: 1.975 MB / 0.6143 GB, free: 44.08 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003081/1.031, allocations: 2.852 MB / 0.6171 GB, free: 40.92 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005402/1.037, allocations: 4.206 MB / 0.6212 GB, free: 36.51 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/1.037, allocations: 4 kB / 0.6212 GB, free: 36.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01331/1.05, allocations: 6.032 MB / 0.6271 GB, free: 30.45 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/1.05, allocations: 12 kB / 0.6271 GB, free: 30.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/1.05, allocations: 22.53 kB / 0.6271 GB, free: 30.42 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009138/1.051, allocations: 367.5 kB / 0.6275 GB, free: 30.06 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001976/1.053, allocations: 0.7019 MB / 0.6282 GB, free: 29.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004202/1.057, allocations: 4.602 MB / 0.6327 GB, free: 24.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00712/1.065, allocations: 0.6568 MB / 0.6333 GB, free: 23.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002774/1.065, allocations: 80 kB / 0.6334 GB, free: 23.88 MB / 462.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.008894/1.074, allocations: 8.146 MB / 0.6413 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00488/1.079, allocations: 1.4 MB / 0.6427 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01172/1.09, allocations: 6.035 MB / 0.6486 GB, free: 8.262 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/1.09, allocations: 7.969 kB / 0.6486 GB, free: 8.254 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/1.09, allocations: 0 / 0.6486 GB, free: 8.254 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0135/1.104, allocations: 4.197 MB / 0.6527 GB, free: 4.02 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004207/1.108, allocations: 40 kB / 0.6527 GB, free: 3.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006402/1.115, allocations: 0.6591 MB / 0.6534 GB, free: 3.32 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000817/1.115, allocations: 424.7 kB / 0.6538 GB, free: 2.906 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01411/1.13, allocations: 6.977 MB / 0.6606 GB, free: 11.94 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01496/1.144, allocations: 7.412 MB / 0.6678 GB, free: 4.488 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003409/1.148, allocations: 2.052 MB / 0.6698 GB, free: 2.434 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.05364/1.202, allocations: 25.68 MB / 0.6949 GB, free: 8.828 MB / 0.4982 GB Notification: Performance of Backend: time 9.42e-07/1.202, allocations: 4 kB / 0.6949 GB, free: 8.824 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01589/1.218, allocations: 3.919 MB / 0.6987 GB, free: 5.086 MB / 0.4982 GB Notification: Performance of SimCode: time 0.06959/1.287, allocations: 38.28 MB / 0.7361 GB, free: 14.77 MB / 0.5451 GB Notification: Performance of Templates: time 0.433/1.72, allocations: 167 MB / 0.8992 GB, free: 55.79 MB / 0.5451 GB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)