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.0008925/0.0008925, allocations: 91.69 kB / 17.31 MB, free: 5.582 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.0009617/0.0009617, allocations: 179.5 kB / 18.21 MB, free: 5.191 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.348/1.348, allocations: 223.3 MB / 242.3 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002159/0.000216, allocations: 7.938 kB / 302.1 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07286/0.07309, allocations: 50.4 MB / 352.5 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004985/0.07809, allocations: 5.077 MB / 357.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002444/0.08055, allocations: 1.657 MB / 359.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000352/0.08092, allocations: 15.94 kB / 359.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008731/0.0818, allocations: 498.3 kB / 359.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000593/0.0824, allocations: 322.5 kB / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006835/0.0831, allocations: 326.4 kB / 360.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008195/0.08393, allocations: 0.8378 MB / 361.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004012/0.08434, allocations: 295.7 kB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002951/0.08464, allocations: 286.8 kB / 361.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003744/0.08502, allocations: 394.4 kB / 362.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.108e-05/0.08509, allocations: 32 kB / 362.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001488/0.08525, allocations: 64 kB / 362.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000357/0.08561, allocations: 0.5336 MB / 362.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004778/0.0861, allocations: 0.6963 MB / 363.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001205/0.08731, allocations: 1.707 MB / 365.2 MB, free: 6.695 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.08732, allocations: 0 / 365.2 MB, free: 6.695 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.08733, allocations: 4 kB / 365.2 MB, free: 6.691 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.08735, allocations: 4 kB / 365.2 MB, free: 6.688 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002344/0.0897, allocations: 1.811 MB / 367 MB, free: 4.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.08973, allocations: 12.02 kB / 367 MB, free: 4.805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002194/0.08996, allocations: 186.6 kB / 367.2 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001811/0.09178, allocations: 1.474 MB / 368.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002163/0.09201, allocations: 102.6 kB / 368.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.801e-05/0.09208, allocations: 44 kB / 368.8 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000999/0.09309, allocations: 0.6011 MB / 369.4 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.09311, allocations: 0 / 369.4 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.858e-05/0.09317, allocations: 20 kB / 369.4 MB, free: 2.289 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.09318, allocations: 12 kB / 369.4 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000723/0.09391, allocations: 363.7 kB / 369.8 MB, free: 1.918 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.14/0.2339, allocations: 3.28 MB / 373.1 MB, free: 22.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.2352, allocations: 423 kB / 373.5 MB, free: 22.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004799/0.2357, allocations: 202.8 kB / 373.7 MB, free: 22.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.2357, allocations: 2.688 kB / 373.7 MB, free: 22.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.2357, allocations: 37.16 kB / 373.7 MB, free: 22.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.465e-06/0.2357, allocations: 0 / 373.7 MB, free: 22.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001977/0.2377, allocations: 0.7554 MB / 374.5 MB, free: 22.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.2378, allocations: 209.6 kB / 374.7 MB, free: 21.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003762/0.2415, allocations: 2.89 MB / 377.6 MB, free: 21.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.2416, allocations: 37.95 kB / 377.6 MB, free: 21.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005539/0.2421, allocations: 0.7822 MB / 378.4 MB, free: 20.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.374e-05/0.2422, allocations: 76.58 kB / 378.5 MB, free: 20.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.544e-05/0.2423, allocations: 32.09 kB / 378.5 MB, free: 20.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.783e-05/0.2423, allocations: 321.7 kB / 378.8 MB, free: 20.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003421/0.2426, allocations: 131.7 kB / 378.9 MB, free: 20.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004061/0.2431, allocations: 304.3 kB / 379.2 MB, free: 20.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000681/0.2438, allocations: 375.2 kB / 379.6 MB, free: 19.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2438, allocations: 1.281 kB / 379.6 MB, free: 19.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001178/0.2449, allocations: 0.5899 MB / 380.2 MB, free: 19.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.245, allocations: 6.656 kB / 380.2 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.245, allocations: 2.562 kB / 380.2 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002459/0.2452, allocations: 63.83 kB / 380.3 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.2456, allocations: 79 kB / 380.4 MB, free: 19.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.2468, allocations: 1.579 MB / 381.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000504/0.2473, allocations: 70.34 kB / 382 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.859e-05/0.2473, allocations: 15.16 kB / 382 MB, free: 18.13 MB / 302.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.0006035/0.248, allocations: 0.5807 MB / 382.6 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001998/0.2482, allocations: 162.3 kB / 382.8 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001235/0.2494, allocations: 0.5444 MB / 383.3 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2494, allocations: 6.891 kB / 383.3 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.2494, allocations: 0.9375 kB / 383.3 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.2494, allocations: 2.391 kB / 383.3 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002696/0.2521, allocations: 1.72 MB / 385 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.2522, allocations: 0 / 385 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002424/0.2524, allocations: 50.89 kB / 385.1 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001585/0.2526, allocations: 48.97 kB / 385.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.2526, allocations: 10.8 kB / 385.1 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00107/0.2537, allocations: 1.53 MB / 386.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2537, allocations: 3.922 kB / 386.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/0.2552, allocations: 0.7569 MB / 387.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005092/0.2557, allocations: 382.1 kB / 387.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.2559, allocations: 7.188 kB / 387.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000481/0.2564, allocations: 62.52 kB / 387.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.015e-05/0.2565, allocations: 28.98 kB / 387.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.2565, allocations: 5.641 kB / 387.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002688/0.2592, allocations: 2.065 MB / 390 MB, free: 13.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2592, allocations: 4 kB / 390 MB, free: 13.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007198/0.2599, allocations: 207.2 kB / 390.2 MB, free: 13.94 MB / 302.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.0007773/0.2607, allocations: 372 kB / 390.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009695/0.2617, allocations: 461.5 kB / 391 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.2617, allocations: 3.453 kB / 391 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005229/0.2622, allocations: 283.8 kB / 391.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/0.2634, allocations: 208.9 kB / 391.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004835/0.2682, allocations: 3.653 MB / 395.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007259/0.2689, allocations: 1.355 MB / 396.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/0.2692, allocations: 81.58 kB / 396.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2692, allocations: 0 / 396.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of Templates: time 0.02856/0.2977, allocations: 24.41 MB / 421 MB, free: 1.961 MB / 318.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