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.001467/0.001467, allocations: 104.7 kB / 16.51 MB, free: 6.652 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.001283/0.001283, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.381/1.381, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 50.77 kB / 299.9 MB, free: 6.309 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1272, allocations: 49.45 MB / 349.4 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.01101/0.1383, allocations: 5.494 MB / 354.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004306/0.1426, allocations: 1.68 MB / 356.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008386/0.1435, allocations: 12 kB / 356.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001772/0.1454, allocations: 0.4983 MB / 357.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001241/0.1466, allocations: 314.6 kB / 357.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.148, allocations: 325.5 kB / 357.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001747/0.1497, allocations: 0.8417 MB / 358.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008048/0.1506, allocations: 295.7 kB / 358.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000704/0.1513, allocations: 310.8 kB / 359.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007894/0.1521, allocations: 422.4 kB / 359.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000162/0.1523, allocations: 44 kB / 359.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003388/0.1526, allocations: 87.91 kB / 359.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006558/0.1533, allocations: 0.5492 MB / 360.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001229/0.1545, allocations: 0.6869 MB / 360.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002795/0.1573, allocations: 2.04 MB / 362.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1574, allocations: 4 kB / 363 MB, free: 7.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1574, allocations: 0 / 363 MB, free: 7.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.554e-05/0.1574, allocations: 0 / 363 MB, free: 7.23 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.00538/0.1628, allocations: 2.083 MB / 365 MB, free: 5.086 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.1629, allocations: 8.031 kB / 365 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004473/0.1634, allocations: 186.6 kB / 365.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003238/0.1666, allocations: 1.474 MB / 366.7 MB, free: 3.375 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003293/0.167, allocations: 98.66 kB / 366.8 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.1671, allocations: 44 kB / 366.8 MB, free: 3.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.1686, allocations: 0.5776 MB / 367.4 MB, free: 2.609 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.1687, allocations: 3.938 kB / 367.4 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.918e-05/0.1687, allocations: 27.98 kB / 367.4 MB, free: 2.578 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.1688, allocations: 16 kB / 367.5 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.1699, allocations: 335.8 kB / 367.8 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1652/0.335, allocations: 3.256 MB / 371 MB, free: 24.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.3362, allocations: 379.2 kB / 371.4 MB, free: 24.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004619/0.3367, allocations: 189.5 kB / 371.6 MB, free: 24.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.277e-05/0.3367, allocations: 1.438 kB / 371.6 MB, free: 24.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.842e-05/0.3368, allocations: 41.61 kB / 371.6 MB, free: 24.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.954e-06/0.3368, allocations: 0 / 371.6 MB, free: 24.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001908/0.3387, allocations: 0.6899 MB / 372.3 MB, free: 24.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.3388, allocations: 214.3 kB / 372.5 MB, free: 23.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003568/0.3424, allocations: 2.887 MB / 375.4 MB, free: 23.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.554e-05/0.3424, allocations: 31.98 kB / 375.5 MB, free: 22.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005552/0.343, allocations: 0.7944 MB / 376.3 MB, free: 22.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.072e-05/0.343, allocations: 67.83 kB / 376.3 MB, free: 22.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.3431, allocations: 71.53 kB / 376.4 MB, free: 22.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.471e-05/0.3432, allocations: 319 kB / 376.7 MB, free: 21.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003328/0.3435, allocations: 120.2 kB / 376.8 MB, free: 21.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004047/0.3439, allocations: 297.4 kB / 377.1 MB, free: 21.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006559/0.3446, allocations: 359.9 kB / 377.5 MB, free: 21.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3446, allocations: 1.906 kB / 377.5 MB, free: 21.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001113/0.3457, allocations: 0.5553 MB / 378 MB, free: 21.26 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.3458, allocations: 7.875 kB / 378 MB, free: 21.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3458, allocations: 4.281 kB / 378 MB, free: 21.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002611/0.3461, allocations: 64.62 kB / 378.1 MB, free: 21.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002784/0.3463, allocations: 75.38 kB / 378.2 MB, free: 21.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.3477, allocations: 1.557 MB / 379.7 MB, free: 19.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005153/0.3482, allocations: 66.38 kB / 379.8 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.3482, allocations: 16.77 kB / 379.8 MB, free: 19.73 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.0007495/0.349, allocations: 0.5775 MB / 380.4 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000204/0.3492, allocations: 161.1 kB / 380.5 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.3504, allocations: 0.5145 MB / 381.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.3504, allocations: 6.156 kB / 381.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.3504, allocations: 1.797 kB / 381.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.3504, allocations: 1.312 kB / 381.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002689/0.3531, allocations: 1.688 MB / 382.8 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.3532, allocations: 1.156 kB / 382.8 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002323/0.3534, allocations: 49.27 kB / 382.8 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001777/0.3536, allocations: 44.36 kB / 382.8 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.3536, allocations: 7.047 kB / 382.9 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001155/0.3548, allocations: 1.515 MB / 384.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3548, allocations: 1.719 kB / 384.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.3563, allocations: 0.7153 MB / 385.1 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004969/0.3568, allocations: 383.2 kB / 385.5 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.3569, allocations: 4.953 kB / 385.5 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004393/0.3574, allocations: 46.8 kB / 385.5 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.3575, allocations: 32.5 kB / 385.5 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.3575, allocations: 9.906 kB / 385.5 MB, free: 16.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002619/0.3601, allocations: 2.064 MB / 387.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3601, allocations: 0 / 387.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007401/0.3609, allocations: 203.4 kB / 387.8 MB, free: 15.56 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.0007742/0.3617, allocations: 369.3 kB / 388.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.3627, allocations: 437 kB / 388.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.3627, allocations: 1.125 kB / 388.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005146/0.3632, allocations: 269.5 kB / 388.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.3643, allocations: 223.3 kB / 389.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004652/0.369, allocations: 3.499 MB / 392.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007118/0.3697, allocations: 1.353 MB / 393.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003977/0.3701, allocations: 238.7 kB / 394.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001861/0.3703, allocations: 78.31 kB / 394.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3703, allocations: 0 / 394.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of Templates: time 0.02069/0.391, allocations: 14.67 MB / 408.9 MB, free: 13.56 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/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