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.001153/0.001153, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.00119/0.00119, allocations: 191 kB / 18 MB, free: 5.207 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.415/1.415, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 51.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.309, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007723/0.3168, allocations: 6.016 MB / 406.7 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003356/0.3202, allocations: 2.139 MB / 408.9 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003606/0.3206, allocations: 15.94 kB / 408.9 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00132/0.3219, allocations: 0.6263 MB / 409.5 MB, free: 76 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008109/0.3228, allocations: 409.8 kB / 409.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009444/0.3238, allocations: 420.9 kB / 410.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001551/0.3253, allocations: 1.31 MB / 411.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007031/0.3261, allocations: 467.1 kB / 412.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006878/0.3268, allocations: 0.4906 MB / 412.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00072/0.3275, allocations: 0.5916 MB / 413.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001381/0.3276, allocations: 116 kB / 413.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003399/0.328, allocations: 164 kB / 413.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004901/0.3285, allocations: 0.6545 MB / 414.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007853/0.3293, allocations: 0.8894 MB / 415 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002438/0.3317, allocations: 2.62 MB / 417.6 MB, free: 7.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.462e-05/0.3317, allocations: 3.984 kB / 417.6 MB, free: 7.926 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3318, allocations: 3.938 kB / 417.6 MB, free: 7.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.798e-05/0.3318, allocations: 0 / 417.6 MB, free: 7.922 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.003918/0.3357, allocations: 2.36 MB / 420 MB, free: 5.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.3358, allocations: 12.03 kB / 420 MB, free: 5.488 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003367/0.3361, allocations: 210.3 kB / 420.2 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002438/0.3386, allocations: 1.675 MB / 421.9 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.3387, allocations: 104.7 kB / 422 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.531e-05/0.3388, allocations: 60 kB / 422 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.3403, allocations: 0.8297 MB / 422.9 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.3403, allocations: 0 / 422.9 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.106e-05/0.3404, allocations: 28 kB / 422.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.986e-05/0.3404, allocations: 27.94 kB / 422.9 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.3414, allocations: 0.5438 MB / 423.4 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006103/0.3476, allocations: 3.985 MB / 427.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.3489, allocations: 0.5285 MB / 428 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007908/0.3497, allocations: 373.2 kB / 428.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.3498, allocations: 4.281 kB / 428.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.3498, allocations: 38.84 kB / 428.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.164e-06/0.3498, allocations: 0 / 428.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002543/0.3524, allocations: 0.9411 MB / 429.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/0.3525, allocations: 265 kB / 429.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004116/0.3566, allocations: 3.144 MB / 432.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.376e-05/0.3567, allocations: 33.7 kB / 432.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000798/0.3576, allocations: 0.8684 MB / 433.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.3577, allocations: 118.3 kB / 433.7 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.3579, allocations: 94.16 kB / 433.8 MB, free: 7.215 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.358, allocations: 326 kB / 434.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005152/0.3585, allocations: 209 kB / 434.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005808/0.3591, allocations: 398 kB / 434.7 MB, free: 6.227 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009196/0.3601, allocations: 0.5168 MB / 435.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.3601, allocations: 0 / 435.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001635/0.3617, allocations: 0.7766 MB / 436 MB, free: 4.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3617, allocations: 11.98 kB / 436 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.3618, allocations: 4 kB / 436 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002895/0.3621, allocations: 60.83 kB / 436.1 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004836/0.3625, allocations: 120 kB / 436.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001794/0.3644, allocations: 1.794 MB / 438 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007398/0.3651, allocations: 75.41 kB / 438.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.039e-05/0.3652, allocations: 20.08 kB / 438.1 MB, free: 2.652 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.0009827/0.3661, allocations: 0.6631 MB / 438.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004342/0.3666, allocations: 181.7 kB / 438.9 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004536/0.3671, allocations: 218.5 kB / 439.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.3671, allocations: 7.938 kB / 439.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3671, allocations: 0 / 439.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.3671, allocations: 0 / 439.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004044/0.3711, allocations: 2.155 MB / 441.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.3712, allocations: 7.969 kB / 441.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004116/0.3716, allocations: 87.95 kB / 441.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002113/0.3718, allocations: 60.75 kB / 441.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.622e-05/0.3718, allocations: 8 kB / 441.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001792/0.3736, allocations: 1.747 MB / 443.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3737, allocations: 0 / 443.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002307/0.376, allocations: 0.968 MB / 444.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009216/0.3769, allocations: 442.6 kB / 444.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004126/0.3773, allocations: 11.98 kB / 444.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008573/0.3782, allocations: 55.89 kB / 444.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.3784, allocations: 43.88 kB / 444.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.615e-05/0.3784, allocations: 12 kB / 444.8 MB, free: 11.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004726/0.3831, allocations: 2.247 MB / 447 MB, free: 9.453 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3832, allocations: 0 / 447 MB, free: 9.453 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001282/0.3844, allocations: 247.5 kB / 447.2 MB, free: 9.211 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.001426/0.3859, allocations: 485 kB / 447.7 MB, free: 8.918 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001663/0.3876, allocations: 0.6079 MB / 448.3 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.3876, allocations: 4 kB / 448.3 MB, free: 8.293 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006992/0.3883, allocations: 367 kB / 448.7 MB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.3901, allocations: 292.5 kB / 449 MB, free: 7.641 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007704/0.3978, allocations: 3.631 MB / 452.6 MB, free: 3.969 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001567/0.3994, allocations: 1.489 MB / 454.1 MB, free: 2.449 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008583/0.4003, allocations: 299.1 kB / 454.4 MB, free: 2.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003642/0.4007, allocations: 91.44 kB / 454.5 MB, free: 2.062 MB / 366.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4007, allocations: 0 / 454.5 MB, free: 2.062 MB / 366.1 MB Notification: Performance of Templates: time 0.03289/0.4336, allocations: 17.41 MB / 471.9 MB, free: 0.7969 MB / 382.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/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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches