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.001898/0.001898, allocations: 111.3 kB / 21.18 MB, free: 0.7422 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.002261/0.002261, allocations: 211.8 kB / 24.48 MB, free: 4.191 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.422/1.422, allocations: 230.4 MB / 258.1 MB, free: 8.152 MB / 206.1 MB " [Timeout remaining time 178] 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: 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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack") [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.001983/0.001983, allocations: 67.83 kB / 378.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2322, allocations: 53.3 MB / 432 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01201/0.2442, allocations: 10.18 MB / 442.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005491/0.2497, allocations: 3.665 MB / 445.9 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005364/0.2502, allocations: 23.94 kB / 445.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002254/0.2524, allocations: 1.186 MB / 447.1 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001213/0.2537, allocations: 0.6919 MB / 447.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009423/0.2546, allocations: 481.7 kB / 448.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007654/0.2623, allocations: 7.321 MB / 455.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002939/0.2652, allocations: 2.084 MB / 457.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003575/0.2688, allocations: 2.863 MB / 460.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003973/0.2727, allocations: 2.989 MB / 463.5 MB, free: 7.738 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001003/0.2737, allocations: 0.6797 MB / 464.2 MB, free: 7.059 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001226/0.275, allocations: 0.7226 MB / 464.9 MB, free: 6.336 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004486/0.2795, allocations: 5.829 MB / 470.7 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007588/0.287, allocations: 7.187 MB / 477.9 MB, free: 9.266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02418/0.3112, allocations: 25.02 MB / 0.4912 GB, free: 168 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3112, allocations: 0 / 0.4912 GB, free: 168 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3112, allocations: 0 / 0.4912 GB, free: 168 kB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005163/0.3117, allocations: 0 / 0.4912 GB, free: 168 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.04508/0.3568, allocations: 19.23 MB / 0.5099 GB, free: 12.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.3569, allocations: 8.031 kB / 0.51 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003412/0.3603, allocations: 1.642 MB / 0.5116 GB, free: 11.11 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04033/0.4006, allocations: 17.91 MB / 0.529 GB, free: 9.129 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004217/0.401, allocations: 336.2 kB / 0.5294 GB, free: 8.793 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006709/0.4017, allocations: 328 kB / 0.5297 GB, free: 8.473 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01131/0.413, allocations: 6.495 MB / 0.536 GB, free: 1.75 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.78e-05/0.4131, allocations: 4 kB / 0.536 GB, free: 1.746 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004703/0.4136, allocations: 144 kB / 0.5362 GB, free: 1.605 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.518e-05/0.4136, allocations: 80 kB / 0.5362 GB, free: 1.527 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3644/0.778, allocations: 5.124 MB / 0.5412 GB, free: 80.67 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05436/0.8323, allocations: 33.47 MB / 0.5739 GB, free: 57.01 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00619/0.8385, allocations: 4.168 MB / 0.578 GB, free: 52.93 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00336/0.8419, allocations: 2.476 MB / 0.5804 GB, free: 50.46 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.711e-05/0.842, allocations: 17.31 kB / 0.5804 GB, free: 50.44 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.308e-05/0.842, allocations: 67.88 kB / 0.5805 GB, free: 50.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.456e-06/0.842, allocations: 0 / 0.5805 GB, free: 50.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01492/0.8569, allocations: 7.593 MB / 0.5879 GB, free: 43.19 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001568/0.8571, allocations: 0.9824 MB / 0.5889 GB, free: 41.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05253/0.9096, allocations: 35.89 MB / 0.6239 GB, free: 6.176 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004328/0.9101, allocations: 62.8 kB / 0.624 GB, free: 6.109 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01169/0.9217, allocations: 7.545 MB / 0.6313 GB, free: 14.74 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008395/0.9226, allocations: 0.5636 MB / 0.6319 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001084/0.9237, allocations: 431.4 kB / 0.6323 GB, free: 13.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.9238, allocations: 309.1 kB / 0.6326 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003927/0.9277, allocations: 1.967 MB / 0.6345 GB, free: 11.53 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004806/0.9325, allocations: 2.857 MB / 0.6373 GB, free: 8.355 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007643/0.9402, allocations: 4.203 MB / 0.6414 GB, free: 3.945 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.645e-05/0.9402, allocations: 8 kB / 0.6414 GB, free: 3.938 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01538/0.9556, allocations: 6.099 MB / 0.6474 GB, free: 13.82 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.444e-05/0.9556, allocations: 14.95 kB / 0.6474 GB, free: 13.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.672e-05/0.9556, allocations: 16 kB / 0.6474 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/0.9567, allocations: 367.9 kB / 0.6478 GB, free: 13.43 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002472/0.9592, allocations: 0.698 MB / 0.6484 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006263/0.9654, allocations: 4.604 MB / 0.6529 GB, free: 8.008 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006495/0.9719, allocations: 0.671 MB / 0.6536 GB, free: 7.398 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003149/0.9723, allocations: 76 kB / 0.6537 GB, free: 7.324 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.01267/0.9849, allocations: 8.139 MB / 0.6616 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004946/0.9899, allocations: 1.474 MB / 0.6631 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01443/1.004, allocations: 6.03 MB / 0.6689 GB, free: 7.652 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-05/1.004, allocations: 7.969 kB / 0.6689 GB, free: 7.645 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/1.004, allocations: 4 kB / 0.669 GB, free: 7.641 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01446/1.019, allocations: 4.271 MB / 0.6731 GB, free: 3.359 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004109/1.023, allocations: 44 kB / 0.6732 GB, free: 3.316 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006179/1.029, allocations: 0.6552 MB / 0.6738 GB, free: 2.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009598/1.03, allocations: 424.7 kB / 0.6742 GB, free: 2.246 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01663/1.047, allocations: 6.971 MB / 0.681 GB, free: 11.25 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01544/1.062, allocations: 7.501 MB / 0.6883 GB, free: 3.723 MB / 0.4982 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003558/1.066, allocations: 2.017 MB / 0.6903 GB, free: 1.703 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.04966/1.115, allocations: 25.68 MB / 0.7154 GB, free: 8.094 MB / 0.5294 GB Notification: Performance of Backend: time 5.41e-07/1.115, allocations: 0 / 0.7154 GB, free: 8.094 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01612/1.131, allocations: 3.847 MB / 0.7191 GB, free: 4.449 MB / 0.5294 GB Notification: Performance of SimCode: time 0.2625/1.394, allocations: 38.77 MB / 0.757 GB, free: 188.3 MB / 0.5607 GB Notification: Performance of Templates: time 0.2224/1.616, allocations: 168.7 MB / 0.9217 GB, free: 43.94 MB / 0.5607 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile [Timeout 660] (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 & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 8.981084727216512] 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'] 1.6244250987656415 1.632842551 1.31937095 Calling exit ...