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.001564/0.001564, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002/0.002001, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246.7 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 63.42 kB / 306.9 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09519/0.09636, allocations: 50.52 MB / 357.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008004/0.1044, allocations: 6.049 MB / 363.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003996/0.1084, allocations: 2.31 MB / 365.8 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006481/0.1091, allocations: 23.88 kB / 365.8 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.1107, allocations: 0.6301 MB / 366.5 MB, free: 5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009634/0.1116, allocations: 445.6 kB / 366.9 MB, free: 4.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008826/0.1125, allocations: 403 kB / 367.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001514/0.1141, allocations: 1.302 MB / 368.6 MB, free: 2.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000676/0.1147, allocations: 477.8 kB / 369.1 MB, free: 2.383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007121/0.1155, allocations: 0.4906 MB / 369.6 MB, free: 1.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008019/0.1163, allocations: 0.5838 MB / 370.1 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002265/0.1165, allocations: 116 kB / 370.3 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003453/0.1169, allocations: 180 kB / 370.4 MB, free: 1.016 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005031/0.1174, allocations: 0.6584 MB / 371.1 MB, free: 364 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1603/0.2777, allocations: 0.8826 MB / 372 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002613/0.2804, allocations: 2.598 MB / 374.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.2804, allocations: 1.188 kB / 374.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2804, allocations: 0 / 374.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.179e-05/0.2805, allocations: 0 / 374.6 MB, free: 12.04 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.004009/0.2845, allocations: 2.372 MB / 376.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.2845, allocations: 9.625 kB / 377 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003432/0.2849, allocations: 212.3 kB / 377.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002491/0.2874, allocations: 1.654 MB / 378.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002408/0.2876, allocations: 132.5 kB / 378.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.163e-05/0.2877, allocations: 65.88 kB / 379 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.2891, allocations: 0.8288 MB / 379.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.2891, allocations: 1.25 kB / 379.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.359e-05/0.2892, allocations: 28.28 kB / 379.9 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.2892, allocations: 15.62 kB / 379.9 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.2902, allocations: 0.5545 MB / 380.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00585/0.2961, allocations: 4.014 MB / 384.5 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.2974, allocations: 0.5332 MB / 385 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006823/0.2981, allocations: 363 kB / 385.3 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.2982, allocations: 5.828 kB / 385.3 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.2982, allocations: 40.03 kB / 385.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.054e-06/0.2982, allocations: 0 / 385.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002173/0.3004, allocations: 0.9422 MB / 386.3 MB, free: 6.945 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.3005, allocations: 273.5 kB / 386.6 MB, free: 6.625 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004195/0.3047, allocations: 3.159 MB / 389.8 MB, free: 5.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.269e-05/0.3047, allocations: 33.52 kB / 389.8 MB, free: 5.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006779/0.3054, allocations: 0.8576 MB / 390.6 MB, free: 4.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.774e-05/0.3055, allocations: 113.2 kB / 390.8 MB, free: 4.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/0.3057, allocations: 103.6 kB / 390.9 MB, free: 4.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.228e-05/0.3058, allocations: 325.2 kB / 391.2 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004536/0.3062, allocations: 209.9 kB / 391.4 MB, free: 4.379 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005348/0.3068, allocations: 400.5 kB / 391.8 MB, free: 4.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008663/0.3077, allocations: 0.5218 MB / 392.3 MB, free: 3.715 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.3077, allocations: 1.375 kB / 392.3 MB, free: 3.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001472/0.3092, allocations: 0.772 MB / 393.1 MB, free: 3.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.3092, allocations: 15.09 kB / 393.1 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.994e-06/0.3092, allocations: 3.125 kB / 393.1 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002785/0.3095, allocations: 73.5 kB / 393.2 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004403/0.3099, allocations: 109 kB / 393.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001382/0.3113, allocations: 1.794 MB / 395.1 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006686/0.312, allocations: 75.7 kB / 395.1 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.97e-05/0.3121, allocations: 21.94 kB / 395.2 MB, free: 1.477 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.0008438/0.3129, allocations: 0.6638 MB / 395.8 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002472/0.3132, allocations: 184.3 kB / 396 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002587/0.3134, allocations: 223 kB / 396.2 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.3134, allocations: 3.688 kB / 396.2 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3135, allocations: 0 / 396.2 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.3135, allocations: 6.016 kB / 396.2 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003/0.3165, allocations: 2.159 MB / 398.4 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.3165, allocations: 3.562 kB / 398.4 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003714/0.3169, allocations: 80.06 kB / 398.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001775/0.317, allocations: 61.02 kB / 398.5 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.56e-05/0.3171, allocations: 16.27 kB / 398.5 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/0.3185, allocations: 1.731 MB / 400.3 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3185, allocations: 3.938 kB / 400.3 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.3203, allocations: 0.9874 MB / 401.3 MB, free: 13.1 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006807/0.321, allocations: 448.8 kB / 401.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001959/0.3212, allocations: 10.34 kB / 401.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005549/0.3218, allocations: 51.11 kB / 401.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.3219, allocations: 47.53 kB / 401.8 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.3219, allocations: 13.38 kB / 401.8 MB, free: 12.74 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002994/0.3249, allocations: 2.259 MB / 404.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.325, allocations: 3.938 kB / 404.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009312/0.3259, allocations: 247.5 kB / 404.3 MB, free: 10.9 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.327, allocations: 458.5 kB / 404.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.3283, allocations: 0.64 MB / 405.4 MB, free: 9.988 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3283, allocations: 192 / 405.4 MB, free: 9.988 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006409/0.329, allocations: 356.3 kB / 405.8 MB, free: 9.633 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.3303, allocations: 306.9 kB / 406.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005439/0.3357, allocations: 3.632 MB / 409.7 MB, free: 5.672 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/0.3368, allocations: 1.501 MB / 411.2 MB, free: 4.145 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006687/0.3375, allocations: 303.1 kB / 411.5 MB, free: 3.844 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002709/0.3378, allocations: 95.42 kB / 411.6 MB, free: 3.75 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3378, allocations: 0 / 411.6 MB, free: 3.75 MB / 318.1 MB Notification: Performance of Templates: time 0.03282/0.3706, allocations: 19.26 MB / 430.8 MB, free: 0.6367 MB / 334.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/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