Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 110.4 kB / 21.19 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 209.7 kB / 24.49 MB, free: 3.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.413/1.413, allocations: 230.6 MB / 258.3 MB, free: 7.809 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 47.92 kB / 379 MB, free: 2.562 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.212, allocations: 53.36 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01143/0.2234, allocations: 8.757 MB / 441.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005339/0.2288, allocations: 3.349 MB / 444.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005074/0.2293, allocations: 35.75 kB / 444.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002309/0.2316, allocations: 1.148 MB / 445.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001208/0.2328, allocations: 0.6841 MB / 446.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009577/0.2338, allocations: 0.5018 MB / 446.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007393/0.2412, allocations: 7.325 MB / 454.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002958/0.2441, allocations: 2.092 MB / 456.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003743/0.2479, allocations: 2.949 MB / 459.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003627/0.2515, allocations: 2.981 MB / 462.2 MB, free: 8.723 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001077/0.2526, allocations: 0.6836 MB / 462.8 MB, free: 8.039 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001322/0.2539, allocations: 0.7187 MB / 463.6 MB, free: 7.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004791/0.2587, allocations: 5.837 MB / 469.4 MB, free: 1.469 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006937/0.2656, allocations: 5.279 MB / 474.7 MB, free: 12.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02481/0.2904, allocations: 25.17 MB / 499.8 MB, free: 2.906 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.2904, allocations: 0 / 499.8 MB, free: 2.906 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2904, allocations: 0 / 499.8 MB, free: 2.906 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005431/0.291, allocations: 0 / 499.8 MB, free: 2.906 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.04312/0.3341, allocations: 19.33 MB / 0.507 GB, free: 15.43 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.3341, allocations: 8.031 kB / 0.507 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00347/0.3376, allocations: 1.642 MB / 0.5086 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03986/0.3775, allocations: 18.11 MB / 0.5263 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004459/0.3779, allocations: 353.9 kB / 0.5266 GB, free: 11.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006936/0.3786, allocations: 339.8 kB / 0.527 GB, free: 10.9 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01265/0.3913, allocations: 8.009 MB / 0.5348 GB, free: 2.297 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.251e-05/0.3913, allocations: 0 / 0.5348 GB, free: 2.297 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004422/0.3918, allocations: 144 kB / 0.5349 GB, free: 2.156 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.548e-05/0.3918, allocations: 80 kB / 0.535 GB, free: 2.078 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3593/0.7511, allocations: 5.126 MB / 0.54 GB, free: 80.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05232/0.8035, allocations: 30.07 MB / 0.5694 GB, free: 60.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006529/0.81, allocations: 4.165 MB / 0.5734 GB, free: 55.99 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003476/0.8135, allocations: 2.464 MB / 0.5758 GB, free: 53.54 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.482e-05/0.8136, allocations: 17.31 kB / 0.5759 GB, free: 53.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.052e-05/0.8136, allocations: 71.53 kB / 0.5759 GB, free: 53.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 4.108e-06/0.8136, allocations: 0 / 0.5759 GB, free: 53.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01483/0.8284, allocations: 7.472 MB / 0.5832 GB, free: 46.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.8286, allocations: 0.9902 MB / 0.5842 GB, free: 45.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05273/0.8813, allocations: 35.44 MB / 0.6188 GB, free: 9.887 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004549/0.8818, allocations: 65.64 kB / 0.6189 GB, free: 9.816 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.008619/0.8904, allocations: 7.543 MB / 0.6262 GB, free: 2.465 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005754/0.891, allocations: 0.5807 MB / 0.6268 GB, free: 1.953 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006591/0.8916, allocations: 427.2 kB / 0.6272 GB, free: 1.527 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.296e-05/0.8917, allocations: 301.1 kB / 0.6275 GB, free: 1.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003218/0.8949, allocations: 1.971 MB / 0.6294 GB, free: 15.26 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004983/0.8999, allocations: 3.765 MB / 0.6331 GB, free: 10.95 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007405/0.9073, allocations: 4.209 MB / 0.6372 GB, free: 6.535 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.315e-05/0.9073, allocations: 12 kB / 0.6372 GB, free: 6.523 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01476/0.922, allocations: 6.056 MB / 0.6431 GB, free: 456 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.105e-05/0.9221, allocations: 12 kB / 0.6431 GB, free: 444 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.773e-05/0.9221, allocations: 19.98 kB / 0.6432 GB, free: 424 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/0.9232, allocations: 363.7 kB / 0.6435 GB, free: 60 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002473/0.9256, allocations: 0.6941 MB / 0.6442 GB, free: 15.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006011/0.9317, allocations: 4.391 MB / 0.6485 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006499/0.9382, allocations: 0.6192 MB / 0.6491 GB, free: 10.32 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003403/0.9385, allocations: 76.09 kB / 0.6491 GB, free: 10.24 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.0129/0.9514, allocations: 8.147 MB / 0.6571 GB, free: 2.09 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00568/0.9571, allocations: 1.432 MB / 0.6585 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01568/0.9728, allocations: 5.992 MB / 0.6643 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.139e-05/0.9728, allocations: 7.969 kB / 0.6644 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.9728, allocations: 1.75 kB / 0.6644 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01561/0.9884, allocations: 4.363 MB / 0.6686 GB, free: 6.277 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004185/0.9926, allocations: 47.92 kB / 0.6687 GB, free: 6.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006318/0.9989, allocations: 0.6552 MB / 0.6693 GB, free: 5.574 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009904/0.9999, allocations: 436.5 kB / 0.6697 GB, free: 5.148 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01634/1.016, allocations: 6.959 MB / 0.6765 GB, free: 14.17 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01642/1.033, allocations: 7.447 MB / 0.6838 GB, free: 6.695 MB / 0.4982 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003598/1.036, allocations: 2.024 MB / 0.6858 GB, free: 4.672 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.04903/1.085, allocations: 25.3 MB / 0.7105 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of Backend: time 4.9e-07/1.085, allocations: 0 / 0.7105 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01414/1.099, allocations: 3.87 MB / 0.7142 GB, free: 7.789 MB / 0.5294 GB Notification: Performance of SimCode: time 0.06188/1.161, allocations: 38.18 MB / 0.7515 GB, free: 1.535 MB / 0.5607 GB Notification: Performance of Templates: time 0.4268/1.588, allocations: 179.1 MB / 0.9264 GB, free: 36.41 MB / 0.5607 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 9.003024132005521] 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.595940041996073 1.604370679 1.311733103 Calling exit ...