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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001802/0.001802, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.002386/0.002386, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 230.5 MB / 258.1 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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=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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 59.91 kB / 379 MB, free: 2.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2639, allocations: 53.41 MB / 432.4 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01218/0.2761, allocations: 10.17 MB / 442.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006241/0.2823, allocations: 3.66 MB / 446.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009694/0.2833, allocations: 31.75 kB / 446.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002811/0.2861, allocations: 1.202 MB / 447.5 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002162/0.2883, allocations: 0.6841 MB / 448.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001462/0.2897, allocations: 498.8 kB / 448.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0112/0.3009, allocations: 7.314 MB / 456 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004199/0.3051, allocations: 2.088 MB / 458.1 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004702/0.3098, allocations: 2.925 MB / 461 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005405/0.3152, allocations: 2.989 MB / 464 MB, free: 7.035 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002161/0.3174, allocations: 0.6797 MB / 464.7 MB, free: 6.355 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002308/0.3197, allocations: 0.7226 MB / 465.4 MB, free: 5.633 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006382/0.3261, allocations: 5.837 MB / 471.2 MB, free: 15.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01158/0.3377, allocations: 7.187 MB / 478.4 MB, free: 8.555 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02874/0.3664, allocations: 25.01 MB / 0.4916 GB, free: 15.46 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3664, allocations: 0 / 0.4916 GB, free: 15.46 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3664, allocations: 4 kB / 0.4916 GB, free: 15.46 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007132/0.3671, allocations: 0 / 0.4916 GB, free: 15.46 MB / 414.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.05048/0.4176, allocations: 19.33 MB / 0.5105 GB, free: 11.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.4177, allocations: 8.031 kB / 0.5105 GB, free: 11.97 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005669/0.4233, allocations: 1.635 MB / 0.5121 GB, free: 10.32 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04375/0.4671, allocations: 18.11 MB / 0.5298 GB, free: 8.145 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005514/0.4676, allocations: 357.9 kB / 0.5301 GB, free: 7.781 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001117/0.4688, allocations: 324 kB / 0.5304 GB, free: 7.465 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01319/0.4819, allocations: 6.495 MB / 0.5368 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.691e-05/0.482, allocations: 11.94 kB / 0.5368 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00049/0.4825, allocations: 144 kB / 0.5369 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.592e-05/0.4826, allocations: 80 kB / 0.537 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4007/0.8833, allocations: 5.127 MB / 0.542 GB, free: 80 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05951/0.9428, allocations: 33.55 MB / 0.5748 GB, free: 55.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006475/0.9493, allocations: 4.173 MB / 0.5789 GB, free: 51.23 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003611/0.9529, allocations: 2.481 MB / 0.5813 GB, free: 48.76 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001302/0.953, allocations: 17.31 kB / 0.5813 GB, free: 48.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.766e-05/0.9531, allocations: 59.88 kB / 0.5814 GB, free: 48.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.357e-06/0.9531, allocations: 0 / 0.5814 GB, free: 48.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01507/0.9682, allocations: 7.511 MB / 0.5887 GB, free: 41.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001645/0.9683, allocations: 0.9863 MB / 0.5897 GB, free: 40.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06004/1.028, allocations: 35.89 MB / 0.6247 GB, free: 4.586 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004496/1.029, allocations: 65.7 kB / 0.6248 GB, free: 4.516 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01334/1.042, allocations: 7.537 MB / 0.6321 GB, free: 13.15 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009141/1.043, allocations: 0.5773 MB / 0.6327 GB, free: 12.64 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008674/1.044, allocations: 427.4 kB / 0.6331 GB, free: 12.21 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/1.044, allocations: 309.1 kB / 0.6334 GB, free: 11.91 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003838/1.048, allocations: 1.967 MB / 0.6353 GB, free: 9.938 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004661/1.053, allocations: 2.85 MB / 0.6381 GB, free: 6.762 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00761/1.06, allocations: 4.212 MB / 0.6422 GB, free: 2.34 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-05/1.06, allocations: 4 kB / 0.6422 GB, free: 2.336 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01687/1.077, allocations: 6.095 MB / 0.6482 GB, free: 12.22 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.125e-05/1.077, allocations: 15.44 kB / 0.6482 GB, free: 12.21 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.284e-05/1.077, allocations: 19.72 kB / 0.6482 GB, free: 12.19 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/1.078, allocations: 367.2 kB / 0.6486 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002762/1.081, allocations: 0.702 MB / 0.6492 GB, free: 11.13 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006686/1.088, allocations: 4.503 MB / 0.6536 GB, free: 6.531 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007589/1.095, allocations: 0.6576 MB / 0.6543 GB, free: 5.934 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005265/1.096, allocations: 80.08 kB / 0.6544 GB, free: 5.855 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.01362/1.11, allocations: 8.144 MB / 0.6623 GB, free: 13.71 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005703/1.115, allocations: 1.474 MB / 0.6637 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01596/1.131, allocations: 6.02 MB / 0.6696 GB, free: 6.191 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.283e-05/1.131, allocations: 20 kB / 0.6696 GB, free: 6.172 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/1.131, allocations: 7.922 kB / 0.6697 GB, free: 6.164 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.292e-05/1.131, allocations: 3.984 kB / 0.6697 GB, free: 6.16 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05484/1.186, allocations: 18.81 MB / 0.688 GB, free: 3.293 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/1.186, allocations: 0 / 0.688 GB, free: 3.293 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002125/1.188, allocations: 0.5655 MB / 0.6886 GB, free: 2.727 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008865/1.189, allocations: 296.2 kB / 0.6889 GB, free: 2.438 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000256/1.189, allocations: 43.98 kB / 0.6889 GB, free: 2.395 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005541/1.195, allocations: 3.928 MB / 0.6927 GB, free: 14.37 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/1.195, allocations: 0 / 0.6927 GB, free: 14.37 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01904/1.214, allocations: 7.696 MB / 0.7003 GB, free: 6.633 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01619/1.23, allocations: 4.401 MB / 0.7045 GB, free: 2.242 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00593/1.236, allocations: 51.98 kB / 0.7046 GB, free: 2.191 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008698/1.245, allocations: 0.6551 MB / 0.7052 GB, free: 1.535 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001305/1.246, allocations: 452.5 kB / 0.7057 GB, free: 1.094 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004498/1.247, allocations: 44 kB / 0.7057 GB, free: 1.051 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.07195/1.318, allocations: 25.67 MB / 0.7308 GB, free: 7.449 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/1.318, allocations: 0 / 0.7308 GB, free: 7.449 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01139/1.33, allocations: 1.842 MB / 0.7326 GB, free: 5.676 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.001886/1.332, allocations: 416.1 kB / 0.733 GB, free: 5.383 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009677/1.341, allocations: 4.403 MB / 0.7373 GB, free: 0.9688 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/1.341, allocations: 7.094 kB / 0.7373 GB, free: 0.9648 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00476/1.346, allocations: 2.213 MB / 0.7394 GB, free: 14.73 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0189/1.365, allocations: 2.106 MB / 0.7415 GB, free: 12.65 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3224/1.688, allocations: 38.69 MB / 0.7793 GB, free: 186.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01852/1.706, allocations: 10.16 MB / 0.7892 GB, free: 180.2 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005324/1.711, allocations: 0.683 MB / 0.7899 GB, free: 179.6 MB / 0.5607 GB Notification: Performance of SimCode: time 1.413e-06/1.711, allocations: 0 / 0.7899 GB, free: 179.6 MB / 0.5607 GB Notification: Performance of Templates: time 0.6564/2.368, allocations: 307.9 MB / 1.091 GB, free: 52.54 MB / 0.5607 GB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile [Timeout 660] (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) [Timeout 480] [Calling os._exit(0), Time elapsed: 23.355782944941893] 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.378226511878893 2.387801543 2.018684752 Calling exit ...