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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=24000,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=24000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001825/0.001825, allocations: 109.5 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001977/0.001977, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 242.3 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009886/0.0009887, allocations: 51.53 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1024, allocations: 49.45 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01017/0.1126, allocations: 10.05 MB / 361.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004602/0.1172, allocations: 3.47 MB / 365 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008531/0.1181, allocations: 23.94 kB / 365 MB, free: 6.086 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002415/0.1205, allocations: 1.171 MB / 366.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001204/0.1218, allocations: 0.6373 MB / 366.8 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.1228, allocations: 482.3 kB / 367.3 MB, free: 3.801 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.189/0.3118, allocations: 7.342 MB / 374.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004275/0.3161, allocations: 4.462 MB / 379.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003946/0.3201, allocations: 2.835 MB / 382 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005252/0.3254, allocations: 2.924 MB / 384.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002306/0.3277, allocations: 0.6806 MB / 385.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00228/0.33, allocations: 0.7215 MB / 386.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004137/0.3341, allocations: 5.817 MB / 392.1 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01061/0.3448, allocations: 7.178 MB / 399.3 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02335/0.3681, allocations: 24.86 MB / 424.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/0.3682, allocations: 3.375 kB / 424.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3682, allocations: 4 kB / 424.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0007548/0.369, allocations: 0 / 424.1 MB, free: 11.85 MB / 334.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.05629/0.4253, allocations: 18.66 MB / 442.8 MB, free: 9.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.4253, allocations: 10.47 kB / 442.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004173/0.4295, allocations: 1.551 MB / 444.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04095/0.4705, allocations: 17.73 MB / 462.1 MB, free: 6.109 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004575/0.471, allocations: 340.2 kB / 462.4 MB, free: 5.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00102/0.472, allocations: 327.9 kB / 462.7 MB, free: 5.449 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01121/0.4832, allocations: 6.49 MB / 469.2 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.72e-05/0.4833, allocations: 15.45 kB / 469.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004007/0.4837, allocations: 148 kB / 469.4 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-05/0.4838, allocations: 80 kB / 469.5 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008553/0.4924, allocations: 5.12 MB / 474.6 MB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07205/0.5645, allocations: 33.39 MB / 0.4961 GB, free: 7.961 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007658/0.5722, allocations: 4.308 MB / 0.5003 GB, free: 3.734 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004595/0.5768, allocations: 2.568 MB / 0.5028 GB, free: 1.172 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001364/0.577, allocations: 27.17 kB / 0.5028 GB, free: 1.148 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.133e-05/0.5771, allocations: 67.25 kB / 0.5029 GB, free: 1.078 MB / 414.1 MB Notification: Performance of pre-optimization done (n=156): time 3.757e-06/0.5771, allocations: 0 / 0.5029 GB, free: 1.078 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01856/0.5956, allocations: 7.525 MB / 0.5102 GB, free: 9.512 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004962/0.5962, allocations: 0.9863 MB / 0.5112 GB, free: 8.293 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5026/1.099, allocations: 35.76 MB / 0.5461 GB, free: 105.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005092/1.099, allocations: 65.2 kB / 0.5462 GB, free: 105.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01506/1.114, allocations: 7.46 MB / 0.5535 GB, free: 100.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009122/1.115, allocations: 0.5495 MB / 0.554 GB, free: 100.3 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007985/1.116, allocations: 429 kB / 0.5544 GB, free: 100.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.513e-05/1.116, allocations: 301.1 kB / 0.5547 GB, free: 99.82 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003174/1.119, allocations: 1.973 MB / 0.5566 GB, free: 98.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003286/1.123, allocations: 2.854 MB / 0.5594 GB, free: 95.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00548/1.128, allocations: 4.211 MB / 0.5635 GB, free: 90.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/1.128, allocations: 4 kB / 0.5635 GB, free: 90.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01455/1.143, allocations: 6.03 MB / 0.5694 GB, free: 85.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/1.143, allocations: 12 kB / 0.5694 GB, free: 85.22 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.458e-05/1.143, allocations: 19.98 kB / 0.5695 GB, free: 85.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009393/1.144, allocations: 358.2 kB / 0.5698 GB, free: 84.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002088/1.146, allocations: 0.7058 MB / 0.5705 GB, free: 84.14 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00435/1.15, allocations: 4.606 MB / 0.575 GB, free: 79.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00792/1.158, allocations: 0.6585 MB / 0.5756 GB, free: 78.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004893/1.159, allocations: 76 kB / 0.5757 GB, free: 78.68 MB / 430.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.01171/1.17, allocations: 8.13 MB / 0.5836 GB, free: 70.54 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005439/1.176, allocations: 1.396 MB / 0.585 GB, free: 69.12 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01377/1.19, allocations: 6.027 MB / 0.5909 GB, free: 63.07 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/1.19, allocations: 19.69 kB / 0.5909 GB, free: 63.05 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/1.19, allocations: 0 / 0.5909 GB, free: 63.05 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.776e-05/1.19, allocations: 7.969 kB / 0.5909 GB, free: 63.05 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05106/1.241, allocations: 18.52 MB / 0.609 GB, free: 44.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/1.241, allocations: 4 kB / 0.609 GB, free: 44.47 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001772/1.243, allocations: 0.5655 MB / 0.6096 GB, free: 43.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007383/1.243, allocations: 288.7 kB / 0.6098 GB, free: 43.62 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/1.244, allocations: 43.98 kB / 0.6099 GB, free: 43.58 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003642/1.247, allocations: 4.03 MB / 0.6138 GB, free: 39.42 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/1.247, allocations: 3.938 kB / 0.6138 GB, free: 39.41 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01446/1.262, allocations: 7.626 MB / 0.6213 GB, free: 31.75 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01379/1.276, allocations: 4.193 MB / 0.6254 GB, free: 27.52 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0058/1.281, allocations: 55.94 kB / 0.6254 GB, free: 27.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008949/1.29, allocations: 0.6628 MB / 0.6261 GB, free: 26.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001082/1.291, allocations: 432.7 kB / 0.6265 GB, free: 26.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003338/1.292, allocations: 36 kB / 0.6265 GB, free: 26.34 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.04986/1.342, allocations: 25.59 MB / 0.6515 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.81e-07/1.342, allocations: 0 / 0.6515 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01113/1.353, allocations: 1.837 MB / 0.6533 GB, free: 14.97 MB / 446.1 MB 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.001345/1.354, allocations: 429.5 kB / 0.6537 GB, free: 14.72 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0085/1.363, allocations: 4.49 MB / 0.6581 GB, free: 10.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/1.363, allocations: 7.156 kB / 0.6581 GB, free: 10.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003963/1.367, allocations: 2.264 MB / 0.6603 GB, free: 7.934 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01948/1.386, allocations: 2.112 MB / 0.6624 GB, free: 5.848 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08223/1.469, allocations: 37.58 MB / 0.6991 GB, free: 244 kB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2334/1.702, allocations: 10.17 MB / 0.709 GB, free: 145.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.01866/1.721, allocations: 8.157 MB / 0.717 GB, free: 145.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005643/1.726, allocations: 0.6617 MB / 0.7176 GB, free: 145.4 MB / 478.1 MB Notification: Performance of SimCode: time 1.643e-06/1.726, allocations: 0 / 0.7176 GB, free: 145.4 MB / 478.1 MB Notification: Performance of Templates: time 0.2306/1.957, allocations: 156.8 MB / 0.8708 GB, free: 4.367 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches