Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 119.5 kB / 18.41 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 190.9 kB / 21.35 MB, free: 1.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 247.1 MB, free: 4.328 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 51.84 kB / 358.7 MB, free: 8.445 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09441/0.09596, allocations: 49.44 MB / 408.1 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01115/0.1071, allocations: 10.05 MB / 418.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005388/0.1126, allocations: 3.458 MB / 421.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008173/0.1134, allocations: 27.88 kB / 421.6 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002898/0.1163, allocations: 1.179 MB / 422.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001521/0.1179, allocations: 0.6373 MB / 423.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.1192, allocations: 490.3 kB / 423.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1946/0.3138, allocations: 7.342 MB / 431.3 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004506/0.3183, allocations: 4.454 MB / 435.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004068/0.3224, allocations: 2.836 MB / 438.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005349/0.3278, allocations: 2.926 MB / 441.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002373/0.3302, allocations: 0.6762 MB / 442.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002841/0.3331, allocations: 0.7191 MB / 442.9 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00617/0.3393, allocations: 5.815 MB / 448.7 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01428/0.3536, allocations: 7.186 MB / 455.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02906/0.3827, allocations: 24.96 MB / 480.8 MB, free: 1.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3827, allocations: 4 kB / 480.8 MB, free: 1.227 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3827, allocations: 0 / 480.8 MB, free: 1.227 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007364/0.3835, allocations: 0 / 480.8 MB, free: 1.227 MB / 366.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.0525/0.436, allocations: 19.19 MB / 0.4883 GB, free: 13.9 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.094e-05/0.4361, allocations: 8.031 kB / 0.4883 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006654/0.4427, allocations: 1.635 MB / 0.4899 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04206/0.4848, allocations: 17.87 MB / 0.5074 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005728/0.4854, allocations: 332.2 kB / 0.5077 GB, free: 10.4 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001428/0.4869, allocations: 328 kB / 0.508 GB, free: 10.08 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01533/0.5022, allocations: 6.497 MB / 0.5144 GB, free: 3.391 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.63e-05/0.5023, allocations: 0 / 0.5144 GB, free: 3.391 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006447/0.503, allocations: 146.6 kB / 0.5145 GB, free: 3.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.67e-05/0.5031, allocations: 80 kB / 0.5146 GB, free: 3.172 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01143/0.5145, allocations: 5.13 MB / 0.5196 GB, free: 14.05 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06921/0.5838, allocations: 33.44 MB / 0.5522 GB, free: 12.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008519/0.5924, allocations: 4.318 MB / 0.5565 GB, free: 8.332 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004798/0.5972, allocations: 2.581 MB / 0.559 GB, free: 5.758 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001264/0.5974, allocations: 25.2 kB / 0.559 GB, free: 5.738 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.502e-05/0.5974, allocations: 73.36 kB / 0.5591 GB, free: 5.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.507e-06/0.5975, allocations: 0 / 0.5591 GB, free: 5.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01955/0.617, allocations: 7.597 MB / 0.5665 GB, free: 14.03 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005427/0.6176, allocations: 0.9863 MB / 0.5675 GB, free: 12.81 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.07815/0.6957, allocations: 35.76 MB / 0.6024 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005615/0.6963, allocations: 65.7 kB / 0.6024 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.01631/0.7127, allocations: 7.499 MB / 0.6098 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001275/0.714, allocations: 0.5753 MB / 0.6103 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009858/0.715, allocations: 431.4 kB / 0.6107 GB, free: 0.543 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.7151, allocations: 301.1 kB / 0.611 GB, free: 252 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4116/1.127, allocations: 1.962 MB / 0.6129 GB, free: 138.1 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004551/1.131, allocations: 2.861 MB / 0.6157 GB, free: 137.3 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007309/1.139, allocations: 4.203 MB / 0.6198 GB, free: 136.7 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-05/1.139, allocations: 6.781 kB / 0.6198 GB, free: 136.7 MB / 0.4982 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01549/1.154, allocations: 6.105 MB / 0.6258 GB, free: 136.5 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/1.154, allocations: 17.41 kB / 0.6258 GB, free: 136.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.91e-05/1.154, allocations: 14.5 kB / 0.6258 GB, free: 136.5 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/1.155, allocations: 364.7 kB / 0.6262 GB, free: 136.5 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002503/1.158, allocations: 0.6951 MB / 0.6269 GB, free: 136.4 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005034/1.163, allocations: 4.611 MB / 0.6314 GB, free: 134.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00698/1.17, allocations: 0.6615 MB / 0.632 GB, free: 134.9 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005045/1.171, allocations: 78.5 kB / 0.6321 GB, free: 134.9 MB / 0.4982 GB 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.01024/1.181, allocations: 8.125 MB / 0.64 GB, free: 134.8 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005242/1.186, allocations: 1.469 MB / 0.6415 GB, free: 134.1 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.012/1.198, allocations: 6.029 MB / 0.6473 GB, free: 133.5 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/1.198, allocations: 15.31 kB / 0.6474 GB, free: 133.5 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/1.198, allocations: 3.938 kB / 0.6474 GB, free: 133.4 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/1.198, allocations: 7.969 kB / 0.6474 GB, free: 133.4 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03716/1.235, allocations: 18.54 MB / 0.6655 GB, free: 117.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.709e-06/1.235, allocations: 3.656 kB / 0.6655 GB, free: 117.2 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001775/1.237, allocations: 0.5655 MB / 0.666 GB, free: 116.6 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007576/1.238, allocations: 293.5 kB / 0.6663 GB, free: 116.3 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000136/1.238, allocations: 43.98 kB / 0.6664 GB, free: 116.3 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003585/1.242, allocations: 4.036 MB / 0.6703 GB, free: 112.1 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.242, allocations: 0 / 0.6703 GB, free: 112.1 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01414/1.256, allocations: 7.711 MB / 0.6778 GB, free: 104.4 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009644/1.265, allocations: 4.266 MB / 0.682 GB, free: 100.1 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004865/1.27, allocations: 47.98 kB / 0.682 GB, free: 100.1 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007667/1.278, allocations: 0.6591 MB / 0.6827 GB, free: 99.42 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001085/1.279, allocations: 433.4 kB / 0.6831 GB, free: 99 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002185/1.279, allocations: 40 kB / 0.6831 GB, free: 98.96 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.05047/1.33, allocations: 25.59 MB / 0.7081 GB, free: 73.43 MB / 0.4982 GB Notification: Performance of sort global known variables: time 7.61e-07/1.33, allocations: 0 / 0.7081 GB, free: 73.43 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01044/1.34, allocations: 1.844 MB / 0.7099 GB, free: 71.66 MB / 0.4982 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.001695/1.342, allocations: 449.9 kB / 0.7104 GB, free: 71.41 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.007718/1.35, allocations: 4.492 MB / 0.7147 GB, free: 66.91 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.368e-05/1.35, allocations: 5.219 kB / 0.7148 GB, free: 66.91 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.003597/1.354, allocations: 2.268 MB / 0.717 GB, free: 64.63 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02043/1.374, allocations: 2.115 MB / 0.719 GB, free: 62.56 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06479/1.439, allocations: 38.88 MB / 0.757 GB, free: 23.62 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01856/1.457, allocations: 10.13 MB / 0.7669 GB, free: 13.46 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005301/1.463, allocations: 0.687 MB / 0.7676 GB, free: 12.77 MB / 0.4982 GB Notification: Performance of SimCode: time 9.72e-07/1.463, allocations: 3.938 kB / 0.7676 GB, free: 12.77 MB / 0.4982 GB Notification: Performance of Templates: time 0.8162/2.279, allocations: 306.9 MB / 1.067 GB, free: 167.4 MB / 0.5607 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 21.97928165202029] Failed to read output from testmodel.py, exit status != 0: ['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'] 2.286176804918796 2.294464146 1.90988196 Calling exit ...