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.001144/0.001144, allocations: 115.2 kB / 16.63 MB, free: 6.812 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.001259/0.001259, allocations: 190 kB / 17.55 MB, free: 5.934 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.372/1.372, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 42.45 kB / 300.1 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09727/0.09833, allocations: 49.46 MB / 349.6 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.0062/0.1046, allocations: 5.482 MB / 355.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002308/0.1069, allocations: 1.676 MB / 356.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002314/0.1071, allocations: 15.88 kB / 356.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000898/0.108, allocations: 0.4944 MB / 357.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005257/0.1086, allocations: 322.5 kB / 357.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006699/0.1093, allocations: 336 kB / 357.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008629/0.1102, allocations: 0.9002 MB / 358.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000489/0.1107, allocations: 336.8 kB / 359.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003713/0.1111, allocations: 358.8 kB / 359.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004488/0.1115, allocations: 450.4 kB / 359.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.1116, allocations: 76 kB / 360 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001859/0.1118, allocations: 120 kB / 360.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004425/0.1123, allocations: 0.5883 MB / 360.7 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005482/0.1128, allocations: 0.7415 MB / 361.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001676/0.1145, allocations: 2.087 MB / 363.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1145, allocations: 0 / 363.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1145, allocations: 4 kB / 363.5 MB, free: 6.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.15e-05/0.1146, allocations: 0 / 363.5 MB, free: 6.758 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.003065/0.1176, allocations: 2.079 MB / 365.6 MB, free: 4.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1177, allocations: 11.89 kB / 365.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002711/0.118, allocations: 186.6 kB / 365.8 MB, free: 4.422 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001992/0.12, allocations: 1.478 MB / 367.3 MB, free: 2.898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000226/0.1202, allocations: 98.66 kB / 367.4 MB, free: 2.797 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.185e-05/0.1203, allocations: 44 kB / 367.4 MB, free: 2.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.1214, allocations: 0.5815 MB / 368 MB, free: 2.125 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.1214, allocations: 0 / 368 MB, free: 2.125 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.052e-05/0.1215, allocations: 24 kB / 368 MB, free: 2.102 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.1215, allocations: 12 kB / 368 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007011/0.1222, allocations: 351.7 kB / 368.4 MB, free: 1.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1744/0.2966, allocations: 3.243 MB / 371.6 MB, free: 23.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/0.2979, allocations: 381 kB / 372 MB, free: 23.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004607/0.2984, allocations: 182.9 kB / 372.2 MB, free: 23.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.644e-05/0.2984, allocations: 3.281 kB / 372.2 MB, free: 23.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.2985, allocations: 37.8 kB / 372.2 MB, free: 23.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.274e-06/0.2985, allocations: 0.5 kB / 372.2 MB, free: 23.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001955/0.3004, allocations: 0.6945 MB / 372.9 MB, free: 23.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.345e-05/0.3005, allocations: 211.2 kB / 373.1 MB, free: 23.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003517/0.304, allocations: 2.889 MB / 376 MB, free: 22.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.3041, allocations: 32.3 kB / 376 MB, free: 22.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006229/0.3047, allocations: 0.7885 MB / 376.8 MB, free: 21.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.775e-05/0.3048, allocations: 78.3 kB / 376.9 MB, free: 21.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.3049, allocations: 70.7 kB / 377 MB, free: 21.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.938e-05/0.305, allocations: 316.7 kB / 377.3 MB, free: 21.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000314/0.3053, allocations: 125.1 kB / 377.4 MB, free: 21.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003856/0.3057, allocations: 287.5 kB / 377.7 MB, free: 21.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006469/0.3063, allocations: 368.9 kB / 378 MB, free: 20.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.3064, allocations: 1.312 kB / 378 MB, free: 20.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001249/0.3076, allocations: 0.5627 MB / 378.6 MB, free: 20.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.3076, allocations: 6.5 kB / 378.6 MB, free: 20.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.3077, allocations: 5.047 kB / 378.6 MB, free: 20.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002943/0.308, allocations: 56.66 kB / 378.7 MB, free: 20.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000298/0.3083, allocations: 81.59 kB / 378.7 MB, free: 20.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.3097, allocations: 1.723 MB / 380.5 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005641/0.3103, allocations: 65.81 kB / 380.5 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.084e-05/0.3104, allocations: 13.91 kB / 380.5 MB, free: 19.05 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.0007535/0.3111, allocations: 0.5811 MB / 381.1 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/0.3113, allocations: 164.8 kB / 381.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001211/0.3125, allocations: 0.5104 MB / 381.8 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.3126, allocations: 2.766 kB / 381.8 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-06/0.3126, allocations: 0 / 381.8 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.3126, allocations: 2.375 kB / 381.8 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002923/0.3155, allocations: 1.697 MB / 383.5 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3155, allocations: 0 / 383.5 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002322/0.3158, allocations: 46.52 kB / 383.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001638/0.3159, allocations: 45.83 kB / 383.6 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.316, allocations: 6.219 kB / 383.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001151/0.3171, allocations: 1.681 MB / 385.3 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3171, allocations: 1.156 kB / 385.3 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.3186, allocations: 0.7074 MB / 386 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000478/0.3191, allocations: 382.6 kB / 386.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.3192, allocations: 8.812 kB / 386.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000434/0.3197, allocations: 45.53 kB / 386.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.437e-05/0.3198, allocations: 35.88 kB / 386.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.3198, allocations: 4.844 kB / 386.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002785/0.3226, allocations: 2.065 MB / 388.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3226, allocations: 0 / 388.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008296/0.3234, allocations: 205.6 kB / 388.7 MB, free: 14.71 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.000793/0.3242, allocations: 359.3 kB / 389.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.3253, allocations: 451.6 kB / 389.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3253, allocations: 1.812 kB / 389.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004572/0.3258, allocations: 270.8 kB / 389.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000994/0.3268, allocations: 225.8 kB / 390 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004503/0.3313, allocations: 3.504 MB / 393.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006881/0.332, allocations: 1.36 MB / 394.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004638/0.3324, allocations: 237.3 kB / 395.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.3326, allocations: 82.3 kB / 395.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3327, allocations: 0 / 395.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of Templates: time 0.02364/0.3563, allocations: 15.25 MB / 410.4 MB, free: 12.09 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