Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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_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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007823/0.0007823, allocations: 96.11 kB / 18 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009219/0.000922, allocations: 200.4 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.7 MB / 247.5 MB, free: 9.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002142/0.0002142, allocations: 4 kB / 308.4 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08658/0.08681, allocations: 51.53 MB / 359.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006089/0.09294, allocations: 5.616 MB / 365.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003437/0.09641, allocations: 2.225 MB / 367.8 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005468/0.09699, allocations: 15.94 kB / 367.8 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001344/0.09835, allocations: 0.6034 MB / 368.4 MB, free: 4.586 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009056/0.09927, allocations: 386.2 kB / 368.8 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008599/0.1001, allocations: 375.1 kB / 369.1 MB, free: 3.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001444/0.1016, allocations: 1.22 MB / 370.3 MB, free: 2.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006586/0.1023, allocations: 425.5 kB / 370.8 MB, free: 2.191 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005627/0.1028, allocations: 386.4 kB / 371.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006869/0.1035, allocations: 0.5096 MB / 371.6 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.1037, allocations: 44 kB / 371.7 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000253/0.1039, allocations: 108 kB / 371.8 MB, free: 1.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00041/0.1043, allocations: 0.5763 MB / 372.4 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1571/0.2614, allocations: 0.8139 MB / 373.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002853/0.2643, allocations: 2.133 MB / 375.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2644, allocations: 1.25 kB / 375.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2644, allocations: 0 / 375.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000105/0.2645, allocations: 0 / 375.3 MB, free: 11.74 MB / 302.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.005178/0.2697, allocations: 2.053 MB / 377.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.2697, allocations: 9.5 kB / 377.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008879/0.2706, allocations: 215.6 kB / 377.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00381/0.2744, allocations: 1.654 MB / 379.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002792/0.2747, allocations: 141.7 kB / 379.4 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001646/0.2749, allocations: 67.66 kB / 379.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.2766, allocations: 0.838 MB / 380.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.2767, allocations: 0 / 380.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-05/0.2768, allocations: 29.94 kB / 380.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.2768, allocations: 15.31 kB / 380.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.278, allocations: 0.5593 MB / 380.9 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007112/0.2851, allocations: 4.049 MB / 384.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.2865, allocations: 0.5663 MB / 385.5 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007247/0.2872, allocations: 382 kB / 385.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.2872, allocations: 5.953 kB / 385.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.2873, allocations: 39.59 kB / 385.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.044e-06/0.2873, allocations: 0 / 385.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002523/0.2898, allocations: 1 MB / 386.9 MB, free: 7.703 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.989e-05/0.2899, allocations: 276.8 kB / 387.2 MB, free: 7.383 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005426/0.2953, allocations: 3.16 MB / 390.4 MB, free: 6.242 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.2955, allocations: 33.14 kB / 390.4 MB, free: 6.207 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006482/0.2961, allocations: 0.8553 MB / 391.2 MB, free: 5.473 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.881e-05/0.2962, allocations: 115.8 kB / 391.4 MB, free: 5.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.014e-05/0.2963, allocations: 44.2 kB / 391.4 MB, free: 5.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.764e-05/0.2963, allocations: 326.2 kB / 391.7 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004832/0.2968, allocations: 220.3 kB / 391.9 MB, free: 4.918 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005177/0.2974, allocations: 408.4 kB / 392.3 MB, free: 4.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008543/0.2982, allocations: 0.5521 MB / 392.9 MB, free: 4.238 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.2982, allocations: 1.344 kB / 392.9 MB, free: 4.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001689/0.2999, allocations: 0.7931 MB / 393.7 MB, free: 3.848 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3, allocations: 9.906 kB / 393.7 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3, allocations: 4.344 kB / 393.7 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002823/0.3003, allocations: 69.2 kB / 393.8 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00044/0.3007, allocations: 122.7 kB / 393.9 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001263/0.302, allocations: 1.646 MB / 395.5 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008407/0.3028, allocations: 89.39 kB / 395.6 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.903e-05/0.3029, allocations: 21.56 kB / 395.6 MB, free: 2.16 MB / 302.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.001091/0.304, allocations: 0.66 MB / 396.3 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003468/0.3043, allocations: 186.4 kB / 396.5 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003522/0.3047, allocations: 223.4 kB / 396.7 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3047, allocations: 2.438 kB / 396.7 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3047, allocations: 8.875 kB / 396.7 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3047, allocations: 0 / 396.7 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003127/0.3079, allocations: 2.186 MB / 398.9 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.3079, allocations: 2.844 kB / 398.9 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003585/0.3083, allocations: 87.84 kB / 399 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001816/0.3084, allocations: 70.73 kB / 399 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.3085, allocations: 7.5 kB / 399.1 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001397/0.3099, allocations: 1.597 MB / 400.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3099, allocations: 0 / 400.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002005/0.3119, allocations: 1.015 MB / 401.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007353/0.3127, allocations: 452.9 kB / 402.1 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001915/0.3129, allocations: 8.75 kB / 402.1 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005997/0.3135, allocations: 68.88 kB / 402.2 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.3136, allocations: 46.72 kB / 402.2 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.3136, allocations: 12.28 kB / 402.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003544/0.3172, allocations: 2.254 MB / 404.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.22e-07/0.3172, allocations: 0 / 404.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001204/0.3184, allocations: 262.1 kB / 404.8 MB, free: 11.75 MB / 318.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.001068/0.3195, allocations: 460.8 kB / 405.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001333/0.3208, allocations: 0.6412 MB / 405.8 MB, free: 10.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.3208, allocations: 0 / 405.8 MB, free: 10.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006607/0.3215, allocations: 376.2 kB / 406.2 MB, free: 10.47 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001706/0.3232, allocations: 282.3 kB / 406.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006624/0.3299, allocations: 4.28 MB / 410.8 MB, free: 5.883 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/0.331, allocations: 1.489 MB / 412.3 MB, free: 4.363 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005167/0.3315, allocations: 91.44 kB / 412.3 MB, free: 4.273 MB / 318.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3315, allocations: 0 / 412.3 MB, free: 4.273 MB / 318.1 MB Notification: Performance of Templates: time 0.04075/0.3723, allocations: 29.24 MB / 441.6 MB, free: 7.082 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches