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.001549/0.001549, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00191/0.00191, allocations: 201.2 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3118, allocations: 50.55 MB / 409.2 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.0114/0.3233, allocations: 10.09 MB / 419.3 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005499/0.3288, allocations: 3.623 MB / 423 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006434/0.3295, allocations: 23.94 kB / 423 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00223/0.3317, allocations: 1.19 MB / 424.2 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001159/0.3329, allocations: 0.6841 MB / 424.9 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.3341, allocations: 486.9 kB / 425.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006911/0.3411, allocations: 7.344 MB / 432.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005159/0.3462, allocations: 4.482 MB / 437.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004384/0.3507, allocations: 2.855 MB / 440 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004854/0.3556, allocations: 2.935 MB / 442.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001554/0.3571, allocations: 0.6797 MB / 443.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001719/0.3589, allocations: 0.7265 MB / 444.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004055/0.3629, allocations: 5.818 MB / 450.2 MB, free: 8.461 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008196/0.3711, allocations: 7.183 MB / 457.4 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02103/0.3922, allocations: 24.93 MB / 482.3 MB, free: 8.242 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.3922, allocations: 3.938 kB / 482.3 MB, free: 8.238 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3922, allocations: 0 / 482.3 MB, free: 8.238 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006646/0.3929, allocations: 0 / 482.3 MB, free: 8.238 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.05475/0.4477, allocations: 18.69 MB / 0.4892 GB, free: 5.391 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.4477, allocations: 12.03 kB / 0.4892 GB, free: 5.379 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006814/0.4546, allocations: 1.551 MB / 0.4908 GB, free: 3.809 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04132/0.4959, allocations: 17.78 MB / 0.5081 GB, free: 1.938 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004518/0.4964, allocations: 332.2 kB / 0.5084 GB, free: 1.605 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009337/0.4974, allocations: 316 kB / 0.5087 GB, free: 1.297 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01247/0.5098, allocations: 6.499 MB / 0.5151 GB, free: 10.57 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-05/0.5099, allocations: 7.938 kB / 0.5151 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004803/0.5104, allocations: 144 kB / 0.5152 GB, free: 10.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.138e-05/0.5105, allocations: 80 kB / 0.5153 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009335/0.5199, allocations: 5.123 MB / 0.5203 GB, free: 5.211 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5785/1.098, allocations: 33.41 MB / 0.5529 GB, free: 100.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006693/1.105, allocations: 4.312 MB / 0.5572 GB, free: 98.34 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003451/1.109, allocations: 2.587 MB / 0.5597 GB, free: 97.21 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.694e-05/1.109, allocations: 16.03 kB / 0.5597 GB, free: 97.21 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.284e-05/1.109, allocations: 70.36 kB / 0.5598 GB, free: 97.15 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 4.228e-06/1.109, allocations: 0 / 0.5598 GB, free: 97.15 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.0203/1.129, allocations: 7.526 MB / 0.5671 GB, free: 91.59 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000297/1.129, allocations: 0.9824 MB / 0.5681 GB, free: 90.38 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06379/1.193, allocations: 35.88 MB / 0.6031 GB, free: 54.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005633/1.194, allocations: 61.7 kB / 0.6032 GB, free: 54.53 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0134/1.207, allocations: 7.499 MB / 0.6105 GB, free: 47.23 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007716/1.208, allocations: 0.5426 MB / 0.611 GB, free: 46.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007402/1.209, allocations: 431 kB / 0.6114 GB, free: 46.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.749e-05/1.209, allocations: 309.1 kB / 0.6117 GB, free: 45.96 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002907/1.212, allocations: 1.97 MB / 0.6137 GB, free: 43.99 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00314/1.215, allocations: 2.853 MB / 0.6164 GB, free: 40.83 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005356/1.22, allocations: 4.205 MB / 0.6205 GB, free: 36.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/1.22, allocations: 8 kB / 0.6206 GB, free: 36.42 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01387/1.234, allocations: 6.028 MB / 0.6264 GB, free: 30.36 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/1.234, allocations: 12 kB / 0.6265 GB, free: 30.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.288e-05/1.234, allocations: 16 kB / 0.6265 GB, free: 30.33 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008945/1.235, allocations: 375.5 kB / 0.6268 GB, free: 29.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002112/1.237, allocations: 0.6902 MB / 0.6275 GB, free: 29.28 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004174/1.241, allocations: 4.611 MB / 0.632 GB, free: 24.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008597/1.25, allocations: 0.6568 MB / 0.6326 GB, free: 23.87 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004872/1.251, allocations: 76 kB / 0.6327 GB, free: 23.8 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.01186/1.262, allocations: 8.154 MB / 0.6407 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006414/1.269, allocations: 1.396 MB / 0.642 GB, free: 14.22 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01323/1.282, allocations: 6.043 MB / 0.6479 GB, free: 8.172 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/1.282, allocations: 12 kB / 0.648 GB, free: 8.16 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/1.282, allocations: 0.5 kB / 0.648 GB, free: 8.16 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/1.282, allocations: 11.97 kB / 0.648 GB, free: 8.148 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04256/1.325, allocations: 18.58 MB / 0.6661 GB, free: 5.523 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/1.325, allocations: 0 / 0.6661 GB, free: 5.523 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00192/1.327, allocations: 0.5616 MB / 0.6667 GB, free: 4.965 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000867/1.328, allocations: 296.7 kB / 0.6669 GB, free: 4.672 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000141/1.328, allocations: 36 kB / 0.667 GB, free: 4.637 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004576/1.332, allocations: 4.042 MB / 0.6709 GB, free: 480 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.332, allocations: 0 / 0.6709 GB, free: 480 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01666/1.349, allocations: 7.636 MB / 0.6784 GB, free: 8.789 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01264/1.362, allocations: 4.185 MB / 0.6825 GB, free: 4.566 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005567/1.367, allocations: 51.98 kB / 0.6825 GB, free: 4.516 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00806/1.375, allocations: 0.6601 MB / 0.6832 GB, free: 3.855 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001214/1.377, allocations: 436.7 kB / 0.6836 GB, free: 3.426 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002095/1.377, allocations: 44 kB / 0.6836 GB, free: 3.383 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.05799/1.435, allocations: 25.67 MB / 0.7087 GB, free: 9.789 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.41e-07/1.435, allocations: 4 kB / 0.7087 GB, free: 9.785 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01385/1.449, allocations: 1.833 MB / 0.7105 GB, free: 7.949 MB / 0.5138 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.001511/1.45, allocations: 429.8 kB / 0.7109 GB, free: 7.664 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009759/1.46, allocations: 4.485 MB / 0.7153 GB, free: 3.172 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/1.46, allocations: 5.219 kB / 0.7153 GB, free: 3.168 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004517/1.465, allocations: 2.269 MB / 0.7175 GB, free: 0.8867 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02589/1.491, allocations: 2.103 MB / 0.7195 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3807/1.871, allocations: 37.31 MB / 0.756 GB, free: 183.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01734/1.889, allocations: 10.2 MB / 0.7659 GB, free: 181 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01926/1.908, allocations: 7.688 MB / 0.7734 GB, free: 178.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005305/1.913, allocations: 0.6702 MB / 0.7741 GB, free: 178.3 MB / 0.545 GB Notification: Performance of SimCode: time 9.22e-07/1.913, allocations: 3.719 kB / 0.7741 GB, free: 178.3 MB / 0.545 GB Notification: Performance of Templates: time 0.2302/2.144, allocations: 160.3 MB / 0.9307 GB, free: 22.2 MB / 0.545 GB 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 -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/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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches