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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 240.9 MB, free: 10.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 100.5 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009774/0.0009776, allocations: 44.08 kB / 350 MB, free: 72 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2878, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005481/0.2933, allocations: 5.485 MB / 404.9 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002272/0.2956, allocations: 1.673 MB / 406.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000318/0.296, allocations: 15.94 kB / 406.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009752/0.297, allocations: 498.3 kB / 407.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005298/0.2975, allocations: 326.5 kB / 407.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007332/0.2983, allocations: 327.9 kB / 407.8 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006642/0.2989, allocations: 0.8573 MB / 408.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004073/0.2994, allocations: 295.7 kB / 408.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002497/0.2996, allocations: 310.8 kB / 409.2 MB, free: 23.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003218/0.3, allocations: 422.4 kB / 409.6 MB, free: 23.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.995e-05/0.3, allocations: 40 kB / 409.7 MB, free: 23.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001619/0.3002, allocations: 79.98 kB / 409.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002917/0.3005, allocations: 0.5531 MB / 410.3 MB, free: 22.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004065/0.3009, allocations: 0.6908 MB / 411 MB, free: 21.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.302, allocations: 2.044 MB / 413 MB, free: 19.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.302, allocations: 0 / 413 MB, free: 19.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.302, allocations: 0 / 413 MB, free: 19.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.302, allocations: 0 / 413 MB, free: 19.75 MB / 298.7 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.002834/0.3049, allocations: 2.077 MB / 415.1 MB, free: 17.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.3049, allocations: 12.03 kB / 415.1 MB, free: 17.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002003/0.3051, allocations: 182.6 kB / 415.3 MB, free: 17.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.3068, allocations: 1.482 MB / 416.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.307, allocations: 94.67 kB / 416.9 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.823e-05/0.3071, allocations: 52 kB / 416.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008394/0.308, allocations: 0.5849 MB / 417.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.308, allocations: 4 kB / 417.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.372e-05/0.308, allocations: 20 kB / 417.5 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.308, allocations: 12 kB / 417.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006133/0.3087, allocations: 343.7 kB / 417.9 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003676/0.3124, allocations: 3.254 MB / 421.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009634/0.3133, allocations: 384.3 kB / 421.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004005/0.3138, allocations: 184.7 kB / 421.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.231e-05/0.3138, allocations: 7.984 kB / 421.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.3138, allocations: 42.56 kB / 421.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.793e-06/0.3138, allocations: 0 / 421.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001596/0.3154, allocations: 0.695 MB / 422.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.3155, allocations: 213.6 kB / 422.6 MB, free: 9.766 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002703/0.3182, allocations: 2.884 MB / 425.5 MB, free: 6.836 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.3182, allocations: 33.7 kB / 425.6 MB, free: 6.797 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004681/0.3187, allocations: 0.7814 MB / 426.3 MB, free: 6.008 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.279e-05/0.3188, allocations: 74.98 kB / 426.4 MB, free: 5.934 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.3189, allocations: 69.94 kB / 426.5 MB, free: 5.859 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.088e-05/0.319, allocations: 322 kB / 426.8 MB, free: 5.539 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002947/0.3193, allocations: 124.5 kB / 426.9 MB, free: 5.418 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003382/0.3196, allocations: 295.8 kB / 427.2 MB, free: 5.062 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005625/0.3202, allocations: 358.2 kB / 427.6 MB, free: 4.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.3202, allocations: 0 / 427.6 MB, free: 4.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001011/0.3212, allocations: 0.5614 MB / 428.1 MB, free: 4.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3213, allocations: 8 kB / 428.1 MB, free: 4.082 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.3213, allocations: 4 kB / 428.1 MB, free: 4.078 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002713/0.3216, allocations: 52.83 kB / 428.2 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000262/0.3218, allocations: 80.08 kB / 428.3 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/0.3231, allocations: 1.568 MB / 429.8 MB, free: 2.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004674/0.3235, allocations: 55.66 kB / 429.9 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.3236, allocations: 16.09 kB / 429.9 MB, free: 2.176 MB / 298.7 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.0006382/0.3242, allocations: 0.5795 MB / 430.5 MB, free: 1.586 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001773/0.3244, allocations: 169.8 kB / 430.6 MB, free: 1.418 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.3255, allocations: 0.5102 MB / 431.2 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.3255, allocations: 4 kB / 431.2 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.3255, allocations: 0 / 431.2 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.3255, allocations: 0 / 431.2 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.3281, allocations: 1.682 MB / 432.8 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.3281, allocations: 3.938 kB / 432.8 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.3284, allocations: 51.91 kB / 432.9 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002022/0.3286, allocations: 56.73 kB / 432.9 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.3286, allocations: 4 kB / 433 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001556/0.3302, allocations: 1.514 MB / 434.5 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3302, allocations: 0 / 434.5 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01059/0.3408, allocations: 6.376 MB / 440.8 MB, free: 6.668 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000799/0.3417, allocations: 379 kB / 441.2 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.3418, allocations: 8 kB / 441.2 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004323/0.3422, allocations: 51.98 kB / 441.3 MB, free: 6.219 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.3423, allocations: 27.95 kB / 441.3 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.3424, allocations: 4 kB / 441.3 MB, free: 6.188 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003036/0.3454, allocations: 2.067 MB / 443.4 MB, free: 4.098 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3454, allocations: 0 / 443.4 MB, free: 4.098 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001218/0.3466, allocations: 311.6 kB / 443.7 MB, free: 3.793 MB / 314.7 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.001133/0.3478, allocations: 416.2 kB / 444.1 MB, free: 3.543 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.3489, allocations: 442.6 kB / 444.5 MB, free: 3.098 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.3489, allocations: 4 kB / 444.5 MB, free: 3.094 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004979/0.3494, allocations: 270.2 kB / 444.8 MB, free: 2.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.3506, allocations: 221.6 kB / 445 MB, free: 2.602 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006094/0.3567, allocations: 3.807 MB / 448.8 MB, free: 14.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.3578, allocations: 1.359 MB / 450.2 MB, free: 13.34 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006767/0.3585, allocations: 246.8 kB / 450.4 MB, free: 13.1 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002196/0.3587, allocations: 91.42 kB / 450.5 MB, free: 13.01 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.3587, allocations: 3.938 kB / 450.5 MB, free: 13.01 MB / 330.7 MB Notification: Performance of Templates: time 0.03304/0.3917, allocations: 15.87 MB / 466.4 MB, free: 13.22 MB / 346.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches