Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 101.2 kB / 17.73 MB, free: 5.324 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.001253/0.001253, allocations: 192.2 kB / 18.67 MB, free: 4.395 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.428/1.428, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 43.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2464, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006562/0.253, allocations: 5.489 MB / 406.9 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002646/0.2557, allocations: 1.722 MB / 408.6 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003392/0.2561, allocations: 12 kB / 408.6 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009684/0.257, allocations: 0.5252 MB / 409.1 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005889/0.2577, allocations: 342.2 kB / 409.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000751/0.2584, allocations: 381.3 kB / 409.8 MB, free: 384 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008861/0.2593, allocations: 0.8925 MB / 410.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004629/0.2598, allocations: 340.7 kB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003613/0.2602, allocations: 366.8 kB / 411.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004738/0.2607, allocations: 442.4 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.2608, allocations: 76 kB / 411.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002038/0.261, allocations: 120 kB / 412 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004013/0.2614, allocations: 0.5844 MB / 412.6 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000578/0.262, allocations: 0.7454 MB / 413.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001704/0.2637, allocations: 2.114 MB / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.2637, allocations: 0 / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2637, allocations: 0 / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.514e-05/0.2638, allocations: 0 / 415.5 MB, free: 10.69 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002966/0.2667, allocations: 2.071 MB / 417.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.2668, allocations: 15.89 kB / 417.6 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002434/0.267, allocations: 182.6 kB / 417.8 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.269, allocations: 1.501 MB / 419.3 MB, free: 6.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.501e-05/0.2692, allocations: 74.67 kB / 419.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.843e-05/0.2692, allocations: 44 kB / 419.4 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.2703, allocations: 0.5776 MB / 420 MB, free: 6.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.2703, allocations: 4 kB / 420 MB, free: 6.074 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.603e-05/0.2704, allocations: 16 kB / 420 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.2704, allocations: 23.88 kB / 420 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000673/0.2711, allocations: 347.7 kB / 420.3 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004129/0.2752, allocations: 3.234 MB / 423.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.2763, allocations: 385.7 kB / 423.9 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004555/0.2768, allocations: 184.8 kB / 424.1 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.2768, allocations: 4 kB / 424.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.2768, allocations: 34.56 kB / 424.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.054e-06/0.2769, allocations: 0 / 424.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001887/0.2787, allocations: 0.6982 MB / 424.9 MB, free: 1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.544e-05/0.2789, allocations: 205.6 kB / 425.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003247/0.2821, allocations: 2.892 MB / 428 MB, free: 13.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/0.2822, allocations: 33.7 kB / 428 MB, free: 13.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00065/0.2828, allocations: 0.7892 MB / 428.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.326e-05/0.2829, allocations: 71 kB / 428.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.283, allocations: 73.92 kB / 428.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2831, allocations: 314 kB / 429.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003389/0.2835, allocations: 124.6 kB / 429.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004143/0.2839, allocations: 284.9 kB / 429.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006827/0.2846, allocations: 362.1 kB / 430 MB, free: 11.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2846, allocations: 0 / 430 MB, free: 11.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001121/0.2857, allocations: 0.5563 MB / 430.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.2858, allocations: 8 kB / 430.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.2858, allocations: 4 kB / 430.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002654/0.286, allocations: 64.81 kB / 430.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002871/0.2863, allocations: 76.09 kB / 430.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001582/0.2879, allocations: 1.72 MB / 432.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004529/0.2884, allocations: 63.66 kB / 432.5 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.394e-05/0.2884, allocations: 19.94 kB / 432.5 MB, free: 8.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0006595/0.2891, allocations: 0.5777 MB / 433.1 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002019/0.2893, allocations: 161.9 kB / 433.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001177/0.2905, allocations: 0.5142 MB / 433.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.2905, allocations: 0 / 433.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.2905, allocations: 0 / 433.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2905, allocations: 0 / 433.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002518/0.293, allocations: 1.7 MB / 435.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2931, allocations: 0 / 435.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002323/0.2933, allocations: 43.97 kB / 435.5 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001528/0.2935, allocations: 44.83 kB / 435.5 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.2935, allocations: 8 kB / 435.5 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001408/0.2949, allocations: 1.673 MB / 437.2 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2949, allocations: 0 / 437.2 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.2964, allocations: 0.7063 MB / 437.9 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004995/0.2969, allocations: 383 kB / 438.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.297, allocations: 7.938 kB / 438.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004243/0.2975, allocations: 43.95 kB / 438.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.736e-05/0.2976, allocations: 31.95 kB / 438.4 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.2976, allocations: 4 kB / 438.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00262/0.3002, allocations: 2.067 MB / 440.4 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3002, allocations: 0 / 440.4 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007417/0.301, allocations: 211.5 kB / 440.6 MB, free: 0.5156 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008369/0.3018, allocations: 360.9 kB / 441 MB, free: 296 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001115/0.3029, allocations: 445.5 kB / 441.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.303, allocations: 0 / 441.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005467/0.3035, allocations: 267.2 kB / 441.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.3046, allocations: 218.1 kB / 441.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005711/0.3104, allocations: 3.151 MB / 445.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001125/0.3115, allocations: 1.359 MB / 446.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003486/0.3119, allocations: 79.44 kB / 446.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3119, allocations: 0 / 446.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of Templates: time 0.0342/0.3461, allocations: 24.83 MB / 471.3 MB, free: 1.883 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches