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.001078/0.001078, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001128/0.001128, allocations: 198.8 kB / 18.01 MB, free: 5.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.473/1.473, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000926/0.000926, allocations: 43.94 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3152, allocations: 49.43 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006549/0.3218, allocations: 5.5 MB / 406.2 MB, free: 3.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002567/0.3244, allocations: 1.715 MB / 407.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003064/0.3247, allocations: 15.94 kB / 407.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009528/0.3257, allocations: 0.5214 MB / 408.5 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005456/0.3263, allocations: 342.2 kB / 408.8 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006991/0.327, allocations: 374 kB / 409.2 MB, free: 404 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008229/0.3278, allocations: 0.9003 MB / 410.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00044/0.3283, allocations: 336.7 kB / 410.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003359/0.3286, allocations: 358.8 kB / 410.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004373/0.3291, allocations: 442.4 kB / 411.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.523e-05/0.3292, allocations: 80 kB / 411.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001969/0.3294, allocations: 123.9 kB / 411.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003859/0.3298, allocations: 0.5805 MB / 411.9 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000548/0.3303, allocations: 0.7454 MB / 412.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001702/0.332, allocations: 2.117 MB / 414.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3321, allocations: 0 / 414.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3321, allocations: 0 / 414.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.404e-05/0.3321, allocations: 0 / 414.8 MB, free: 10.7 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.002843/0.3349, allocations: 2.137 MB / 416.9 MB, free: 8.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.335, allocations: 11.89 kB / 417 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002454/0.3352, allocations: 207.6 kB / 417.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001945/0.3372, allocations: 1.507 MB / 418.7 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.763e-05/0.3373, allocations: 66.7 kB / 418.7 MB, free: 6.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.158e-05/0.3374, allocations: 52 kB / 418.8 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.3384, allocations: 0.5776 MB / 419.4 MB, free: 6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.3384, allocations: 7.875 kB / 419.4 MB, free: 5.992 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.884e-05/0.3385, allocations: 23.98 kB / 419.4 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.3385, allocations: 15.98 kB / 419.4 MB, free: 5.953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006787/0.3392, allocations: 343.8 kB / 419.7 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004215/0.3434, allocations: 3.235 MB / 423 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.3445, allocations: 378.6 kB / 423.3 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004916/0.345, allocations: 194.4 kB / 423.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.181e-05/0.3451, allocations: 4 kB / 423.5 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/0.3451, allocations: 42.5 kB / 423.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.155e-06/0.3451, allocations: 0 / 423.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001885/0.347, allocations: 0.7038 MB / 424.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.3471, allocations: 213.6 kB / 424.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00349/0.3506, allocations: 2.888 MB / 427.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.79e-05/0.3507, allocations: 29.7 kB / 427.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006662/0.3514, allocations: 0.786 MB / 428.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.914e-05/0.3515, allocations: 87.25 kB / 428.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.3516, allocations: 70.03 kB / 428.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.3517, allocations: 321.9 kB / 428.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003258/0.352, allocations: 124.6 kB / 428.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004173/0.3524, allocations: 288.9 kB / 429.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006841/0.3531, allocations: 361.8 kB / 429.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3531, allocations: 0 / 429.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001208/0.3544, allocations: 0.5635 MB / 430 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3544, allocations: 8 kB / 430 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.3544, allocations: 8.062 kB / 430 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003088/0.3547, allocations: 64.81 kB / 430.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/0.355, allocations: 75.89 kB / 430.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001948/0.357, allocations: 1.716 MB / 431.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005487/0.3576, allocations: 63.7 kB / 431.9 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/0.3576, allocations: 12 kB / 431.9 MB, free: 8.871 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.0008753/0.3585, allocations: 0.5797 MB / 432.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002166/0.3587, allocations: 174.8 kB / 432.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001124/0.3598, allocations: 0.5102 MB / 433.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3599, allocations: 4 kB / 433.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-06/0.3599, allocations: 0 / 433.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.3599, allocations: 7.984 kB / 433.2 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002457/0.3623, allocations: 1.682 MB / 434.9 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.3624, allocations: 4 kB / 434.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/0.3626, allocations: 52 kB / 434.9 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001902/0.3628, allocations: 48.81 kB / 435 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.3628, allocations: 4 kB / 435 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001463/0.3643, allocations: 1.666 MB / 436.7 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3643, allocations: 3.938 kB / 436.7 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.3657, allocations: 0.7147 MB / 437.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000554/0.3663, allocations: 391.9 kB / 437.8 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.3664, allocations: 8 kB / 437.8 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004075/0.3669, allocations: 43.95 kB / 437.8 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.367, allocations: 39.84 kB / 437.8 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.367, allocations: 8 kB / 437.9 MB, free: 2.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002675/0.3697, allocations: 2.059 MB / 439.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3697, allocations: 0 / 439.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008384/0.3705, allocations: 207.6 kB / 440.1 MB, free: 384 kB / 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.0008641/0.3714, allocations: 369.4 kB / 440.5 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.3725, allocations: 430.1 kB / 440.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3725, allocations: 4.062 kB / 440.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005144/0.373, allocations: 286.3 kB / 441.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.3741, allocations: 222.6 kB / 441.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005652/0.3797, allocations: 3.082 MB / 444.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.3808, allocations: 1.355 MB / 445.8 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007567/0.3816, allocations: 249.6 kB / 446.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00023/0.3818, allocations: 79.44 kB / 446.2 MB, free: 10.37 MB / 366.1 MB Notification: Performance of SimCode: time 1.442e-06/0.3818, allocations: 0 / 446.2 MB, free: 10.37 MB / 366.1 MB Notification: Performance of Templates: time 0.02868/0.4105, allocations: 15.74 MB / 461.9 MB, free: 10.71 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/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