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.001149/0.001149, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001375/0.001376, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 63.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3405, allocations: 50.53 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01172/0.3523, allocations: 10.1 MB / 419.3 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006031/0.3583, allocations: 3.623 MB / 423 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009912/0.3594, allocations: 27.88 kB / 423 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002793/0.3622, allocations: 1.187 MB / 424.2 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001976/0.3642, allocations: 0.6684 MB / 424.8 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.3655, allocations: 494.4 kB / 425.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007789/0.3733, allocations: 7.341 MB / 432.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005215/0.3786, allocations: 4.474 MB / 437.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004209/0.3828, allocations: 2.859 MB / 440 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004952/0.3878, allocations: 2.931 MB / 442.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001417/0.3892, allocations: 0.6836 MB / 443.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001717/0.3909, allocations: 0.7226 MB / 444.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004626/0.3956, allocations: 5.818 MB / 450.1 MB, free: 8.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01015/0.4057, allocations: 7.187 MB / 457.3 MB, free: 1.254 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02685/0.4326, allocations: 24.93 MB / 482.3 MB, free: 8.254 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.4327, allocations: 0 / 482.3 MB, free: 8.254 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4327, allocations: 4 kB / 482.3 MB, free: 8.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008709/0.4336, allocations: 0 / 482.3 MB, free: 8.25 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.05199/0.4856, allocations: 18.68 MB / 0.4892 GB, free: 5.41 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.4856, allocations: 8.031 kB / 0.4892 GB, free: 5.402 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00455/0.4902, allocations: 1.555 MB / 0.4907 GB, free: 3.828 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03959/0.5298, allocations: 17.78 MB / 0.5081 GB, free: 1.961 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003958/0.5302, allocations: 332.2 kB / 0.5084 GB, free: 1.629 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007405/0.531, allocations: 324 kB / 0.5087 GB, free: 1.312 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01142/0.5424, allocations: 6.495 MB / 0.5151 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.903e-05/0.5425, allocations: 4 kB / 0.5151 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004413/0.543, allocations: 144 kB / 0.5152 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.992e-05/0.543, allocations: 83.94 kB / 0.5153 GB, free: 10.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008986/0.552, allocations: 5.123 MB / 0.5203 GB, free: 5.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5176/1.07, allocations: 33.4 MB / 0.5529 GB, free: 100.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007207/1.077, allocations: 4.316 MB / 0.5571 GB, free: 98.37 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003952/1.081, allocations: 2.584 MB / 0.5597 GB, free: 97.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001289/1.081, allocations: 18.12 kB / 0.5597 GB, free: 97.25 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.739e-05/1.081, allocations: 67.81 kB / 0.5597 GB, free: 97.19 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 4.208e-06/1.081, allocations: 1.969 kB / 0.5597 GB, free: 97.19 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01765/1.099, allocations: 7.532 MB / 0.5671 GB, free: 91.65 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002105/1.099, allocations: 0.9863 MB / 0.5681 GB, free: 90.43 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.07377/1.173, allocations: 35.88 MB / 0.6031 GB, free: 54.65 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005605/1.173, allocations: 61.7 kB / 0.6032 GB, free: 54.59 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01311/1.187, allocations: 7.503 MB / 0.6105 GB, free: 47.29 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007758/1.187, allocations: 0.538 MB / 0.611 GB, free: 46.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007967/1.188, allocations: 435 kB / 0.6114 GB, free: 46.32 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.922e-05/1.188, allocations: 301.1 kB / 0.6117 GB, free: 46.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003054/1.191, allocations: 1.967 MB / 0.6136 GB, free: 44.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003312/1.195, allocations: 2.86 MB / 0.6164 GB, free: 40.88 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005655/1.2, allocations: 4.207 MB / 0.6205 GB, free: 36.47 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.237e-05/1.2, allocations: 4 kB / 0.6205 GB, free: 36.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01552/1.216, allocations: 6.032 MB / 0.6264 GB, free: 30.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/1.216, allocations: 15.98 kB / 0.6264 GB, free: 30.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/1.216, allocations: 16.06 kB / 0.6265 GB, free: 30.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009474/1.217, allocations: 371.2 kB / 0.6268 GB, free: 30.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002321/1.219, allocations: 0.6979 MB / 0.6275 GB, free: 29.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00429/1.224, allocations: 4.602 MB / 0.632 GB, free: 24.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008794/1.232, allocations: 0.6568 MB / 0.6326 GB, free: 23.92 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004644/1.233, allocations: 76 kB / 0.6327 GB, free: 23.84 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.01149/1.244, allocations: 8.15 MB / 0.6407 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006676/1.251, allocations: 1.4 MB / 0.642 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01191/1.263, allocations: 6.04 MB / 0.6479 GB, free: 8.219 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/1.263, allocations: 16 kB / 0.6479 GB, free: 8.203 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/1.263, allocations: 0 / 0.6479 GB, free: 8.203 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/1.263, allocations: 7.969 kB / 0.6479 GB, free: 8.195 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04384/1.307, allocations: 18.57 MB / 0.6661 GB, free: 5.57 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/1.307, allocations: 0 / 0.6661 GB, free: 5.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/1.309, allocations: 0.5655 MB / 0.6666 GB, free: 5.004 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009103/1.31, allocations: 296 kB / 0.6669 GB, free: 4.715 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001537/1.31, allocations: 43.98 kB / 0.667 GB, free: 4.672 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004735/1.315, allocations: 4.031 MB / 0.6709 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/1.315, allocations: 1.969 kB / 0.6709 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01856/1.333, allocations: 7.632 MB / 0.6784 GB, free: 8.836 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01307/1.346, allocations: 4.189 MB / 0.6824 GB, free: 4.609 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0049/1.351, allocations: 51.98 kB / 0.6825 GB, free: 4.559 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007903/1.359, allocations: 0.6551 MB / 0.6831 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001281/1.361, allocations: 444.1 kB / 0.6836 GB, free: 3.469 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004931/1.361, allocations: 40 kB / 0.6836 GB, free: 3.43 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.07006/1.431, allocations: 25.67 MB / 0.7087 GB, free: 9.832 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.414e-06/1.431, allocations: 4 kB / 0.7087 GB, free: 9.828 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01185/1.443, allocations: 1.841 MB / 0.7105 GB, free: 7.984 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.001487/1.445, allocations: 418.6 kB / 0.7109 GB, free: 7.699 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009245/1.454, allocations: 4.485 MB / 0.7152 GB, free: 3.211 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/1.454, allocations: 5.219 kB / 0.7153 GB, free: 3.207 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004296/1.458, allocations: 2.268 MB / 0.7175 GB, free: 0.9258 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02195/1.48, allocations: 2.089 MB / 0.7195 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3452/1.825, allocations: 37.32 MB / 0.756 GB, free: 183.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02054/1.846, allocations: 10.2 MB / 0.7659 GB, free: 181 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01593/1.862, allocations: 7.686 MB / 0.7734 GB, free: 178.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005914/1.868, allocations: 0.6606 MB / 0.7741 GB, free: 178.3 MB / 0.545 GB Notification: Performance of SimCode: time 3.176e-06/1.868, allocations: 0 / 0.7741 GB, free: 178.3 MB / 0.545 GB Notification: Performance of Templates: time 0.2319/2.1, allocations: 164.4 MB / 0.9346 GB, free: 18.16 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