Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 112.2 kB / 17.74 MB, free: 5.344 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.001204/0.001204, allocations: 187.1 kB / 18.67 MB, free: 4.422 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.322/1.322, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 47.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2392, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007314/0.2466, allocations: 6.011 MB / 407.4 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00341/0.25, allocations: 2.147 MB / 409.5 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005427/0.2506, allocations: 15.94 kB / 409.6 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001419/0.252, allocations: 0.6185 MB / 410.2 MB, free: 56 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009174/0.253, allocations: 409.8 kB / 410.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008718/0.2538, allocations: 408.3 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001476/0.2553, allocations: 1.31 MB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006674/0.256, allocations: 465.8 kB / 412.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006159/0.2566, allocations: 0.4906 MB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007505/0.2574, allocations: 0.5877 MB / 413.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002009/0.2576, allocations: 116 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003368/0.258, allocations: 176 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004582/0.2584, allocations: 0.6467 MB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008749/0.2593, allocations: 0.8971 MB / 415.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002223/0.2615, allocations: 2.62 MB / 418.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.2616, allocations: 0 / 418.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2616, allocations: 0 / 418.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.94e-05/0.2616, allocations: 0 / 418.3 MB, free: 7.914 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003624/0.2652, allocations: 2.36 MB / 420.6 MB, free: 5.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.2653, allocations: 8.031 kB / 420.6 MB, free: 5.484 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003152/0.2656, allocations: 210.3 kB / 420.8 MB, free: 5.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002255/0.2679, allocations: 1.675 MB / 422.5 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.268, allocations: 112.7 kB / 422.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.2681, allocations: 60 kB / 422.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.2695, allocations: 0.822 MB / 423.5 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.2695, allocations: 7.938 kB / 423.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.687e-05/0.2696, allocations: 31.92 kB / 423.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.2696, allocations: 16 kB / 423.6 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.2706, allocations: 0.5517 MB / 424.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005353/0.276, allocations: 3.985 MB / 428.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/0.2773, allocations: 0.5263 MB / 428.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007448/0.2781, allocations: 369.2 kB / 429 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.2781, allocations: 8.266 kB / 429 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.2782, allocations: 38.84 kB / 429 MB, free: 12.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.973e-06/0.2782, allocations: 0 / 429 MB, free: 12.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00226/0.2804, allocations: 0.9411 MB / 430 MB, free: 11.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.2806, allocations: 269 kB / 430.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003697/0.2843, allocations: 3.148 MB / 433.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.702e-05/0.2843, allocations: 33.64 kB / 433.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007076/0.2851, allocations: 0.8607 MB / 434.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.873e-05/0.2852, allocations: 122.3 kB / 434.4 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.2853, allocations: 98.16 kB / 434.5 MB, free: 7.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.694e-05/0.2854, allocations: 318 kB / 434.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004616/0.2859, allocations: 213 kB / 435 MB, free: 6.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005695/0.2865, allocations: 402 kB / 435.4 MB, free: 6.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009183/0.2874, allocations: 0.509 MB / 435.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.2874, allocations: 0 / 435.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001539/0.289, allocations: 0.7806 MB / 436.7 MB, free: 4.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.289, allocations: 8.062 kB / 436.7 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.289, allocations: 4 kB / 436.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002721/0.2893, allocations: 64.81 kB / 436.8 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000471/0.2898, allocations: 119.8 kB / 436.9 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/0.2914, allocations: 1.794 MB / 438.7 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006111/0.2921, allocations: 75.41 kB / 438.8 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.396e-05/0.2921, allocations: 20 kB / 438.8 MB, free: 2.645 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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 {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0008111/0.2929, allocations: 0.6654 MB / 439.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002336/0.2932, allocations: 189.6 kB / 439.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002739/0.2934, allocations: 218.5 kB / 439.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.2935, allocations: 4 kB / 439.8 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.2935, allocations: 0 / 439.8 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2935, allocations: 3.984 kB / 439.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003161/0.2966, allocations: 2.151 MB / 442 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.2967, allocations: 0 / 442 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003955/0.2971, allocations: 83.94 kB / 442.1 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001956/0.2973, allocations: 60.77 kB / 442.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.2973, allocations: 11.98 kB / 442.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00151/0.2988, allocations: 1.74 MB / 443.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.2988, allocations: 8.125 kB / 443.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001886/0.3007, allocations: 0.9718 MB / 444.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006171/0.3014, allocations: 442.6 kB / 445.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/0.3015, allocations: 11.94 kB / 445.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005399/0.3021, allocations: 59.94 kB / 445.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.3022, allocations: 39.95 kB / 445.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-05/0.3022, allocations: 8 kB / 445.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002886/0.3051, allocations: 2.247 MB / 447.7 MB, free: 9.449 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3051, allocations: 3.938 kB / 447.7 MB, free: 9.445 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008501/0.306, allocations: 251.5 kB / 447.9 MB, free: 9.199 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.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 (29): * Single equations (assignments): 28 * 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 {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001049/0.307, allocations: 472.6 kB / 448.4 MB, free: 8.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.3084, allocations: 0.6156 MB / 449 MB, free: 8.285 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3084, allocations: 0 / 449 MB, free: 8.285 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006528/0.309, allocations: 363.1 kB / 449.4 MB, free: 7.918 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001269/0.3103, allocations: 289.6 kB / 449.6 MB, free: 7.637 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005848/0.3162, allocations: 3.721 MB / 453.4 MB, free: 3.871 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/0.3173, allocations: 1.485 MB / 454.8 MB, free: 2.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003699/0.3177, allocations: 95.44 kB / 454.9 MB, free: 2.262 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3177, allocations: 0 / 454.9 MB, free: 2.262 MB / 366.1 MB Notification: Performance of Templates: time 0.0396/0.3573, allocations: 29.59 MB / 484.5 MB, free: 4.723 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches