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.001603/0.001603, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.002035/0.002036, allocations: 198.9 kB / 18 MB, free: 5.082 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.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001028, allocations: 43.92 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3112, allocations: 49.43 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01072/0.3219, allocations: 10.05 MB / 410.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005277/0.3273, allocations: 3.471 MB / 414.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004958/0.3278, allocations: 27.88 kB / 414.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002193/0.33, allocations: 1.167 MB / 415.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009833/0.331, allocations: 0.649 MB / 416.1 MB, free: 9.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009695/0.332, allocations: 487.5 kB / 416.6 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006726/0.3387, allocations: 7.351 MB / 423.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004539/0.3433, allocations: 4.454 MB / 428.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003945/0.3473, allocations: 2.855 MB / 431.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004675/0.352, allocations: 2.927 MB / 434.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001403/0.3534, allocations: 0.6758 MB / 434.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001574/0.355, allocations: 0.7226 MB / 435.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004636/0.3596, allocations: 5.802 MB / 441.3 MB, free: 72 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01049/0.3701, allocations: 7.188 MB / 448.5 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0219/0.3921, allocations: 24.88 MB / 473.4 MB, free: 15.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3921, allocations: 0 / 473.4 MB, free: 15.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3921, allocations: 4 kB / 473.4 MB, free: 15.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005346/0.3927, allocations: 0 / 473.4 MB, free: 15.89 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.04541/0.4381, allocations: 18.65 MB / 492.1 MB, free: 13.08 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.4382, allocations: 8.031 kB / 492.1 MB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004438/0.4426, allocations: 1.551 MB / 493.6 MB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03622/0.4788, allocations: 17.74 MB / 0.4994 GB, free: 9.68 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003969/0.4793, allocations: 332.2 kB / 0.4997 GB, free: 9.348 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007183/0.48, allocations: 324 kB / 0.5 GB, free: 9.031 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01177/0.4918, allocations: 6.495 MB / 0.5063 GB, free: 2.312 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.897e-05/0.4919, allocations: 3.938 kB / 0.5064 GB, free: 2.309 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004196/0.4923, allocations: 148 kB / 0.5065 GB, free: 2.164 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.157e-05/0.4924, allocations: 80 kB / 0.5066 GB, free: 2.086 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009141/0.5015, allocations: 5.126 MB / 0.5116 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5386/1.04, allocations: 33.4 MB / 0.5442 GB, free: 105.4 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006961/1.047, allocations: 4.31 MB / 0.5484 GB, free: 104.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003676/1.051, allocations: 2.586 MB / 0.5509 GB, free: 104 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001045/1.051, allocations: 18.62 kB / 0.5509 GB, free: 104 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.661e-05/1.051, allocations: 70.03 kB / 0.551 GB, free: 103.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.507e-06/1.051, allocations: 0 / 0.551 GB, free: 103.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01743/1.069, allocations: 7.527 MB / 0.5584 GB, free: 101.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002221/1.069, allocations: 0.9866 MB / 0.5593 GB, free: 100 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05666/1.125, allocations: 35.77 MB / 0.5943 GB, free: 68.67 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005718/1.126, allocations: 61.7 kB / 0.5943 GB, free: 68.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01071/1.137, allocations: 7.456 MB / 0.6016 GB, free: 61.35 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000642/1.137, allocations: 0.5542 MB / 0.6021 GB, free: 60.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006453/1.138, allocations: 419.2 kB / 0.6025 GB, free: 60.38 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.782e-05/1.138, allocations: 305.1 kB / 0.6028 GB, free: 60.08 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002928/1.141, allocations: 1.975 MB / 0.6048 GB, free: 58.11 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003205/1.144, allocations: 2.856 MB / 0.6075 GB, free: 54.94 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005531/1.15, allocations: 4.211 MB / 0.6117 GB, free: 50.53 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.219e-05/1.15, allocations: 4 kB / 0.6117 GB, free: 50.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01314/1.163, allocations: 6.034 MB / 0.6176 GB, free: 44.46 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/1.163, allocations: 15.83 kB / 0.6176 GB, free: 44.45 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/1.163, allocations: 16 kB / 0.6176 GB, free: 44.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009694/1.164, allocations: 364.2 kB / 0.6179 GB, free: 44.08 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002112/1.166, allocations: 0.698 MB / 0.6186 GB, free: 43.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004132/1.17, allocations: 4.608 MB / 0.6231 GB, free: 38.63 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006339/1.177, allocations: 0.6529 MB / 0.6238 GB, free: 37.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002737/1.177, allocations: 76 kB / 0.6238 GB, free: 37.9 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.008853/1.186, allocations: 8.127 MB / 0.6318 GB, free: 29.76 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004388/1.19, allocations: 1.388 MB / 0.6331 GB, free: 28.35 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01117/1.201, allocations: 6.031 MB / 0.639 GB, free: 22.31 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/1.201, allocations: 19.94 kB / 0.639 GB, free: 22.29 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/1.201, allocations: 0 / 0.639 GB, free: 22.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/1.202, allocations: 7.969 kB / 0.639 GB, free: 22.28 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03455/1.236, allocations: 18.54 MB / 0.6571 GB, free: 3.699 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/1.236, allocations: 0 / 0.6571 GB, free: 3.699 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001812/1.238, allocations: 0.5639 MB / 0.6577 GB, free: 3.137 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007578/1.239, allocations: 294.1 kB / 0.658 GB, free: 2.848 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001263/1.239, allocations: 39.98 kB / 0.658 GB, free: 2.809 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004015/1.243, allocations: 4.031 MB / 0.6619 GB, free: 14.65 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/1.243, allocations: 3.25 kB / 0.6619 GB, free: 14.65 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01703/1.26, allocations: 7.633 MB / 0.6694 GB, free: 6.977 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01302/1.273, allocations: 4.189 MB / 0.6735 GB, free: 2.75 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005689/1.279, allocations: 51.98 kB / 0.6735 GB, free: 2.699 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007725/1.286, allocations: 0.6552 MB / 0.6742 GB, free: 2.043 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001278/1.288, allocations: 432.7 kB / 0.6746 GB, free: 1.617 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000167/1.288, allocations: 40 kB / 0.6746 GB, free: 1.578 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.05347/1.341, allocations: 25.6 MB / 0.6996 GB, free: 8.055 MB / 0.4982 GB Notification: Performance of sort global known variables: time 5.61e-07/1.341, allocations: 0 / 0.6996 GB, free: 8.055 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01033/1.352, allocations: 1.84 MB / 0.7014 GB, free: 6.215 MB / 0.4982 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.001256/1.353, allocations: 430.4 kB / 0.7018 GB, free: 5.934 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.008431/1.362, allocations: 4.49 MB / 0.7062 GB, free: 1.438 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/1.362, allocations: 5.406 kB / 0.7062 GB, free: 1.434 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.004183/1.366, allocations: 2.264 MB / 0.7084 GB, free: 15.16 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02116/1.387, allocations: 2.118 MB / 0.7105 GB, free: 13.06 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3537/1.741, allocations: 37.57 MB / 0.7472 GB, free: 175 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02194/1.763, allocations: 10.17 MB / 0.7571 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01891/1.782, allocations: 8.148 MB / 0.7651 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006486/1.788, allocations: 0.6687 MB / 0.7657 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of SimCode: time 2.676e-06/1.788, allocations: 0 / 0.7657 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.24/2.028, allocations: 164.4 MB / 0.9263 GB, free: 7.961 MB / 0.5294 GB 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