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.001162/0.001162, allocations: 106.6 kB / 16.92 MB, free: 5.77 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.001157/0.001157, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.39/1.39, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 46.08 kB / 300.6 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1138, allocations: 49.44 MB / 350.1 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01192/0.1258, allocations: 10.05 MB / 360.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006629/0.1325, allocations: 3.462 MB / 363.6 MB, free: 6.871 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001362/0.1339, allocations: 27.88 kB / 363.6 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003258/0.1372, allocations: 1.179 MB / 364.8 MB, free: 5.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001813/0.139, allocations: 0.6296 MB / 365.4 MB, free: 5.027 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001362/0.1404, allocations: 498.6 kB / 365.9 MB, free: 4.543 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2323/0.3727, allocations: 7.3 MB / 373.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009626/0.3824, allocations: 4.459 MB / 377.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007213/0.3897, allocations: 2.831 MB / 380.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007567/0.3973, allocations: 2.928 MB / 383.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003396/0.4008, allocations: 0.6766 MB / 384.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004528/0.4053, allocations: 0.7231 MB / 384.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007626/0.413, allocations: 5.815 MB / 390.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01872/0.4318, allocations: 7.176 MB / 397.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03265/0.4645, allocations: 24.66 MB / 422.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.4645, allocations: 0 / 422.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4645, allocations: 0 / 422.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0007121/0.4652, allocations: 0 / 422.5 MB, free: 12.49 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.05766/0.5229, allocations: 18.65 MB / 441.1 MB, free: 9.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.523, allocations: 8.031 kB / 441.1 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006378/0.5294, allocations: 1.547 MB / 442.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04989/0.5793, allocations: 17.65 MB / 460.3 MB, free: 6.848 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001659/0.581, allocations: 0.7442 MB / 461.1 MB, free: 6.098 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001126/0.5821, allocations: 335.9 kB / 461.4 MB, free: 5.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01316/0.5953, allocations: 6.479 MB / 467.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001008/0.5955, allocations: 9.719 kB / 467.9 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008791/0.5963, allocations: 156 kB / 468 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.9e-05/0.5964, allocations: 80 kB / 468.1 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/0.6068, allocations: 5.115 MB / 473.2 MB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07908/0.6859, allocations: 33.58 MB / 0.4949 GB, free: 8.113 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008719/0.6947, allocations: 4.305 MB / 0.4991 GB, free: 3.891 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005175/0.6999, allocations: 2.561 MB / 0.5016 GB, free: 1.336 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001788/0.7001, allocations: 25.3 kB / 0.5016 GB, free: 1.312 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.075e-05/0.7002, allocations: 63.88 kB / 0.5017 GB, free: 1.242 MB / 414.1 MB Notification: Performance of pre-optimization done (n=156): time 3.958e-06/0.7003, allocations: 0 / 0.5017 GB, free: 1.242 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.02163/0.7219, allocations: 7.514 MB / 0.509 GB, free: 9.688 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004604/0.7224, allocations: 0.9863 MB / 0.51 GB, free: 8.469 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5008/1.223, allocations: 35.76 MB / 0.5449 GB, free: 105.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004775/1.224, allocations: 67.02 kB / 0.545 GB, free: 105.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01671/1.24, allocations: 7.46 MB / 0.5523 GB, free: 100.4 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008745/1.241, allocations: 0.5402 MB / 0.5528 GB, free: 100.3 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001425/1.243, allocations: 431.4 kB / 0.5532 GB, free: 100.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.605e-05/1.243, allocations: 306.1 kB / 0.5535 GB, free: 99.81 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003175/1.246, allocations: 1.96 MB / 0.5554 GB, free: 98.77 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003557/1.25, allocations: 2.856 MB / 0.5582 GB, free: 95.63 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006206/1.256, allocations: 4.198 MB / 0.5623 GB, free: 91.25 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.538e-05/1.256, allocations: 7.938 kB / 0.5623 GB, free: 91.24 MB / 430.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01639/1.272, allocations: 6.021 MB / 0.5682 GB, free: 85.52 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/1.272, allocations: 12 kB / 0.5682 GB, free: 85.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.708e-05/1.272, allocations: 16 kB / 0.5682 GB, free: 85.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/1.273, allocations: 369.2 kB / 0.5686 GB, free: 85.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002311/1.276, allocations: 0.698 MB / 0.5693 GB, free: 84.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004625/1.28, allocations: 4.605 MB / 0.5738 GB, free: 79.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007967/1.288, allocations: 0.6586 MB / 0.5744 GB, free: 79.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004464/1.289, allocations: 78.06 kB / 0.5745 GB, free: 78.96 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.01131/1.3, allocations: 8.121 MB / 0.5824 GB, free: 70.83 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005184/1.305, allocations: 1.394 MB / 0.5838 GB, free: 69.42 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01404/1.319, allocations: 6.024 MB / 0.5897 GB, free: 63.38 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.337e-05/1.32, allocations: 16 kB / 0.5897 GB, free: 63.36 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/1.32, allocations: 4 kB / 0.5897 GB, free: 63.36 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/1.32, allocations: 11.91 kB / 0.5897 GB, free: 63.35 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04498/1.365, allocations: 18.54 MB / 0.6078 GB, free: 44.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/1.365, allocations: 0 / 0.6078 GB, free: 44.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001822/1.366, allocations: 0.5616 MB / 0.6083 GB, free: 44.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007363/1.367, allocations: 291.5 kB / 0.6086 GB, free: 43.92 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001711/1.367, allocations: 39.98 kB / 0.6086 GB, free: 43.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003491/1.371, allocations: 4.037 MB / 0.6126 GB, free: 39.71 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.371, allocations: 0 / 0.6126 GB, free: 39.71 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01414/1.385, allocations: 7.612 MB / 0.62 GB, free: 32.06 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01159/1.397, allocations: 4.193 MB / 0.6241 GB, free: 27.83 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006503/1.403, allocations: 43.98 kB / 0.6242 GB, free: 27.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008646/1.412, allocations: 0.6589 MB / 0.6248 GB, free: 27.12 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001078/1.413, allocations: 400.7 kB / 0.6252 GB, free: 26.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003798/1.413, allocations: 47.92 kB / 0.6252 GB, free: 26.69 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.05528/1.469, allocations: 25.59 MB / 0.6502 GB, free: 1.168 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.31e-07/1.469, allocations: 0 / 0.6502 GB, free: 1.168 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01277/1.481, allocations: 1.842 MB / 0.652 GB, free: 15.32 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.001894/1.483, allocations: 430.1 kB / 0.6524 GB, free: 15.07 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01383/1.497, allocations: 6.96 MB / 0.6592 GB, free: 8.113 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.366e-05/1.497, allocations: 5.219 kB / 0.6592 GB, free: 8.109 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00439/1.502, allocations: 2.275 MB / 0.6615 GB, free: 5.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01953/1.521, allocations: 2.106 MB / 0.6635 GB, free: 3.734 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2762/1.797, allocations: 37.96 MB / 0.7006 GB, free: 146.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02845/1.826, allocations: 10.18 MB / 0.7105 GB, free: 144.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.02391/1.85, allocations: 8.147 MB / 0.7185 GB, free: 143.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007248/1.857, allocations: 0.665 MB / 0.7191 GB, free: 143.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.453e-06/1.857, allocations: 0 / 0.7191 GB, free: 143.8 MB / 478.1 MB Notification: Performance of Templates: time 0.4602/2.317, allocations: 157.1 MB / 0.8725 GB, free: 146.9 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.csv","/var/lib/jenkins/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