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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001229/0.001228, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001162, allocations: 59.78 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09586/0.09704, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01043/0.1075, allocations: 10.09 MB / 369 MB, free: 3.219 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1697/0.2773, allocations: 3.628 MB / 372.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000931/0.2782, allocations: 26.78 kB / 372.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002608/0.2809, allocations: 1.17 MB / 373.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001572/0.2825, allocations: 0.678 MB / 374.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.2836, allocations: 492.3 kB / 375 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007898/0.2915, allocations: 7.339 MB / 382.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004683/0.2963, allocations: 4.48 MB / 386.8 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004273/0.3006, allocations: 2.844 MB / 389.6 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004655/0.3052, allocations: 2.925 MB / 392.6 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00131/0.3066, allocations: 0.6812 MB / 393.2 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00164/0.3082, allocations: 0.7215 MB / 394 MB, free: 6.945 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002821/0.3111, allocations: 5.824 MB / 399.8 MB, free: 1.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009488/0.3205, allocations: 7.191 MB / 407 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01963/0.3402, allocations: 24.9 MB / 431.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.3403, allocations: 4 kB / 431.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3403, allocations: 0 / 431.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005223/0.3408, allocations: 4 kB / 431.9 MB, free: 1.734 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.04758/0.3884, allocations: 18.69 MB / 450.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3884, allocations: 8.031 kB / 450.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006638/0.3951, allocations: 1.555 MB / 452.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04473/0.4399, allocations: 17.78 MB / 469.9 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004915/0.4404, allocations: 332.2 kB / 470.2 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001147/0.4416, allocations: 324 kB / 470.5 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01424/0.4558, allocations: 6.496 MB / 477 MB, free: 4.453 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000108/0.456, allocations: 11.92 kB / 477.1 MB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001124/0.4571, allocations: 144 kB / 477.2 MB, free: 4.301 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.51e-05/0.4572, allocations: 80 kB / 477.3 MB, free: 4.223 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01183/0.4691, allocations: 5.129 MB / 482.4 MB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06869/0.5378, allocations: 33.41 MB / 0.5037 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008745/0.5466, allocations: 4.312 MB / 0.5079 GB, free: 9.211 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004919/0.5516, allocations: 2.575 MB / 0.5105 GB, free: 6.633 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001829/0.5518, allocations: 19.73 kB / 0.5105 GB, free: 6.617 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001363/0.5519, allocations: 59.88 kB / 0.5105 GB, free: 6.547 MB / 430.1 MB Notification: Performance of pre-optimization done (n=156): time 4.078e-06/0.552, allocations: 3.469 kB / 0.5105 GB, free: 6.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=156): time 0.02026/0.5722, allocations: 7.539 MB / 0.5179 GB, free: 14.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004331/0.5727, allocations: 0.9824 MB / 0.5189 GB, free: 13.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4076/0.9803, allocations: 35.88 MB / 0.5539 GB, free: 113.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005995/0.981, allocations: 63.2 kB / 0.554 GB, free: 113.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01557/0.9966, allocations: 7.495 MB / 0.5613 GB, free: 108 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009783/0.9976, allocations: 0.5433 MB / 0.5618 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001773/0.9994, allocations: 423.3 kB / 0.5622 GB, free: 107.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.67e-05/0.9994, allocations: 307.7 kB / 0.5625 GB, free: 107.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00444/1.004, allocations: 1.964 MB / 0.5644 GB, free: 107 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005186/1.009, allocations: 2.858 MB / 0.5672 GB, free: 105.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007307/1.016, allocations: 4.207 MB / 0.5713 GB, free: 103.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.756e-05/1.016, allocations: 3.906 kB / 0.5713 GB, free: 103.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01364/1.03, allocations: 6.039 MB / 0.5772 GB, free: 100.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.91e-05/1.03, allocations: 10.25 kB / 0.5772 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.537e-05/1.03, allocations: 16.7 kB / 0.5772 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009494/1.031, allocations: 368.8 kB / 0.5776 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002517/1.034, allocations: 0.6941 MB / 0.5783 GB, free: 99.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004656/1.038, allocations: 4.608 MB / 0.5828 GB, free: 95.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007963/1.046, allocations: 0.6607 MB / 0.5834 GB, free: 94.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003494/1.047, allocations: 80 kB / 0.5835 GB, free: 94.47 MB / 446.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.01161/1.058, allocations: 8.147 MB / 0.5915 GB, free: 86.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005157/1.064, allocations: 1.404 MB / 0.5928 GB, free: 84.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01256/1.076, allocations: 6.029 MB / 0.5987 GB, free: 78.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/1.076, allocations: 16 kB / 0.5987 GB, free: 78.83 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/1.076, allocations: 3.828 kB / 0.5987 GB, free: 78.83 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/1.076, allocations: 8.844 kB / 0.5987 GB, free: 78.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04086/1.117, allocations: 18.58 MB / 0.6169 GB, free: 60.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.928e-06/1.117, allocations: 0 / 0.6169 GB, free: 60.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001848/1.119, allocations: 0.5577 MB / 0.6174 GB, free: 59.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008803/1.12, allocations: 296.2 kB / 0.6177 GB, free: 59.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002207/1.12, allocations: 40 kB / 0.6177 GB, free: 59.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003841/1.124, allocations: 4.032 MB / 0.6217 GB, free: 55.15 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.124, allocations: 8 kB / 0.6217 GB, free: 55.14 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01378/1.138, allocations: 7.633 MB / 0.6291 GB, free: 47.47 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01197/1.15, allocations: 4.189 MB / 0.6332 GB, free: 43.24 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006199/1.156, allocations: 47.98 kB / 0.6333 GB, free: 43.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007506/1.164, allocations: 0.6635 MB / 0.6339 GB, free: 42.53 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001191/1.165, allocations: 440.7 kB / 0.6343 GB, free: 42.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002978/1.165, allocations: 40 kB / 0.6344 GB, free: 42.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.05644/1.221, allocations: 25.67 MB / 0.6595 GB, free: 16.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.21e-07/1.222, allocations: 0 / 0.6595 GB, free: 16.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009769/1.231, allocations: 1.837 MB / 0.6613 GB, free: 14.62 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.001265/1.233, allocations: 429.6 kB / 0.6617 GB, free: 14.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007237/1.24, allocations: 4.479 MB / 0.666 GB, free: 9.848 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/1.24, allocations: 9.344 kB / 0.666 GB, free: 9.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003472/1.243, allocations: 2.272 MB / 0.6683 GB, free: 7.555 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02184/1.265, allocations: 2.1 MB / 0.6703 GB, free: 5.473 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0691/1.334, allocations: 37.32 MB / 0.7068 GB, free: 124 kB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02254/1.357, allocations: 10.2 MB / 0.7167 GB, free: 5.887 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.2086/1.566, allocations: 7.685 MB / 0.7242 GB, free: 147.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005853/1.571, allocations: 0.6681 MB / 0.7249 GB, free: 147.8 MB / 494.1 MB Notification: Performance of SimCode: time 7.11e-07/1.572, allocations: 0 / 0.7249 GB, free: 147.8 MB / 494.1 MB Notification: Performance of Templates: time 0.217/1.789, allocations: 156.7 MB / 0.8779 GB, free: 27.89 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches