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.001768/0.001768, allocations: 108.8 kB / 21.18 MB, free: 0.7617 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.002069/0.002069, allocations: 189.2 kB / 24.48 MB, free: 4.164 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.47/1.47, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.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.001611/0.001611, allocations: 51.91 kB / 371.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2418, allocations: 52.19 MB / 423.9 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01317/0.2549, allocations: 10.12 MB / 434 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006136/0.2611, allocations: 3.486 MB / 437.5 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008211/0.2619, allocations: 35.75 kB / 437.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002881/0.2648, allocations: 1.194 MB / 438.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001516/0.2663, allocations: 0.6491 MB / 439.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.2676, allocations: 0.4972 MB / 439.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009661/0.2772, allocations: 7.329 MB / 447.2 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003896/0.2811, allocations: 2.088 MB / 449.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004285/0.2854, allocations: 2.91 MB / 452.2 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004671/0.2901, allocations: 2.978 MB / 455.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001653/0.2917, allocations: 0.6797 MB / 455.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00198/0.2937, allocations: 0.7226 MB / 456.6 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005816/0.2995, allocations: 5.826 MB / 462.4 MB, free: 8.004 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01014/0.3097, allocations: 7.187 MB / 469.6 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02606/0.3357, allocations: 24.96 MB / 494.5 MB, free: 7.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3357, allocations: 4 kB / 494.6 MB, free: 7.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3357, allocations: 0 / 494.6 MB, free: 7.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006122/0.3363, allocations: 0 / 494.6 MB, free: 7.73 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.0476/0.3839, allocations: 19.29 MB / 0.5018 GB, free: 4.301 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.384, allocations: 8.031 kB / 0.5018 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005199/0.3892, allocations: 1.635 MB / 0.5034 GB, free: 2.648 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03956/0.4287, allocations: 18.07 MB / 0.521 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004595/0.4292, allocations: 361.9 kB / 0.5214 GB, free: 140 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000825/0.43, allocations: 328 kB / 0.5217 GB, free: 15.81 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01273/0.4428, allocations: 6.491 MB / 0.528 GB, free: 9.098 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.019e-05/0.4428, allocations: 7.938 kB / 0.528 GB, free: 9.09 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004274/0.4432, allocations: 144 kB / 0.5282 GB, free: 8.949 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-05/0.4433, allocations: 80 kB / 0.5283 GB, free: 8.871 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009823/0.4531, allocations: 5.13 MB / 0.5333 GB, free: 3.73 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4161/0.8693, allocations: 33.54 MB / 0.566 GB, free: 70.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006202/0.8755, allocations: 4.179 MB / 0.5701 GB, free: 66.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003383/0.8789, allocations: 2.463 MB / 0.5725 GB, free: 63.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.57e-05/0.879, allocations: 17.31 kB / 0.5725 GB, free: 63.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.948e-05/0.879, allocations: 70.38 kB / 0.5726 GB, free: 63.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.286e-06/0.879, allocations: 0 / 0.5726 GB, free: 63.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01523/0.8942, allocations: 7.509 MB / 0.5799 GB, free: 56.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001643/0.8944, allocations: 0.9863 MB / 0.5809 GB, free: 55.48 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05461/0.949, allocations: 35.77 MB / 0.6158 GB, free: 19.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000442/0.9495, allocations: 65.7 kB / 0.6159 GB, free: 19.72 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01009/0.9595, allocations: 7.497 MB / 0.6232 GB, free: 12.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006717/0.9602, allocations: 0.5713 MB / 0.6238 GB, free: 11.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006506/0.9609, allocations: 431.4 kB / 0.6242 GB, free: 11.46 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.808e-05/0.9609, allocations: 305.1 kB / 0.6245 GB, free: 11.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002894/0.9638, allocations: 1.974 MB / 0.6264 GB, free: 9.188 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003325/0.9671, allocations: 2.861 MB / 0.6292 GB, free: 6.008 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006178/0.9733, allocations: 4.205 MB / 0.6333 GB, free: 1.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-05/0.9733, allocations: 4 kB / 0.6333 GB, free: 1.586 MB / 446.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01559/0.9889, allocations: 6.088 MB / 0.6392 GB, free: 11.47 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.822e-05/0.9889, allocations: 16 kB / 0.6393 GB, free: 11.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.089e-05/0.989, allocations: 19.98 kB / 0.6393 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/0.9901, allocations: 368.3 kB / 0.6396 GB, free: 11.08 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002599/0.9927, allocations: 0.6941 MB / 0.6403 GB, free: 10.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006227/0.9989, allocations: 4.503 MB / 0.6447 GB, free: 5.793 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007523/1.006, allocations: 0.6655 MB / 0.6454 GB, free: 5.188 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004474/1.007, allocations: 76 kB / 0.6454 GB, free: 5.113 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.01292/1.02, allocations: 8.122 MB / 0.6534 GB, free: 12.98 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005389/1.025, allocations: 1.467 MB / 0.6548 GB, free: 11.51 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01414/1.039, allocations: 6.023 MB / 0.6607 GB, free: 5.473 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.949e-05/1.039, allocations: 16 kB / 0.6607 GB, free: 5.457 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/1.039, allocations: 0 / 0.6607 GB, free: 5.457 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.005e-05/1.039, allocations: 11.91 kB / 0.6607 GB, free: 5.445 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04571/1.085, allocations: 18.76 MB / 0.679 GB, free: 2.625 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/1.085, allocations: 7.609 kB / 0.679 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00203/1.087, allocations: 0.5577 MB / 0.6796 GB, free: 2.062 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008388/1.088, allocations: 298.4 kB / 0.6799 GB, free: 1.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001513/1.088, allocations: 39.98 kB / 0.6799 GB, free: 1.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005201/1.093, allocations: 3.925 MB / 0.6837 GB, free: 13.7 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.093, allocations: 8.031 kB / 0.6837 GB, free: 13.69 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01677/1.11, allocations: 7.696 MB / 0.6913 GB, free: 5.961 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01472/1.125, allocations: 4.399 MB / 0.6955 GB, free: 1.574 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004481/1.129, allocations: 51.98 kB / 0.6956 GB, free: 1.523 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006933/1.136, allocations: 0.6552 MB / 0.6962 GB, free: 0.8672 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001083/1.137, allocations: 448.5 kB / 0.6967 GB, free: 440 kB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002416/1.138, allocations: 36 kB / 0.6967 GB, free: 404 kB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.05912/1.197, allocations: 25.6 MB / 0.7217 GB, free: 6.863 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.4e-07/1.197, allocations: 0 / 0.7217 GB, free: 6.863 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01006/1.207, allocations: 1.844 MB / 0.7235 GB, free: 5.086 MB / 0.5294 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.001825/1.209, allocations: 422.9 kB / 0.7239 GB, free: 4.809 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009383/1.218, allocations: 4.415 MB / 0.7282 GB, free: 392 kB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/1.218, allocations: 5.156 kB / 0.7282 GB, free: 388 kB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004481/1.222, allocations: 2.206 MB / 0.7304 GB, free: 14.16 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01904/1.241, allocations: 2.116 MB / 0.7324 GB, free: 12.06 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2786/1.52, allocations: 38.96 MB / 0.7705 GB, free: 179.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01651/1.537, allocations: 10.13 MB / 0.7804 GB, free: 170.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00503/1.542, allocations: 0.683 MB / 0.781 GB, free: 170.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.162e-06/1.542, allocations: 0 / 0.781 GB, free: 170.1 MB / 0.545 GB Notification: Performance of Templates: time 0.5881/2.13, allocations: 307.1 MB / 1.081 GB, free: 61.08 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.569863834884018] 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.139269162900746 2.148878349 1.810652939 Calling exit ...