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.001632/0.001632, allocations: 108.3 kB / 16.92 MB, free: 5.754 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.001557/0.001557, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.335/1.335, allocations: 222.9 MB / 241.5 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009702/0.0009703, allocations: 43.14 kB / 300.6 MB, free: 5.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09558/0.09657, allocations: 49.44 MB / 350 MB, free: 4.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007071/0.1037, allocations: 5.483 MB / 355.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002904/0.1066, allocations: 1.723 MB / 357.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005158/0.1072, allocations: 11.94 kB / 357.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001122/0.1083, allocations: 0.5213 MB / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000795/0.1091, allocations: 346.2 kB / 358.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008892/0.11, allocations: 377.2 kB / 358.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001287/0.1113, allocations: 0.8886 MB / 359.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005495/0.1119, allocations: 340.8 kB / 359.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000509/0.1124, allocations: 358.8 kB / 360.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005375/0.113, allocations: 442.4 kB / 360.5 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.1131, allocations: 76 kB / 360.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.1133, allocations: 120 kB / 360.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004898/0.1138, allocations: 0.5844 MB / 361.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007078/0.1145, allocations: 0.7415 MB / 362 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002027/0.1166, allocations: 2.083 MB / 364.1 MB, free: 6.352 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1166, allocations: 4 kB / 364.1 MB, free: 6.348 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1166, allocations: 0 / 364.1 MB, free: 6.348 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.242e-05/0.1166, allocations: 3.984 kB / 364.1 MB, free: 6.344 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.003478/0.1201, allocations: 2.075 MB / 366.2 MB, free: 4.207 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.1202, allocations: 15.89 kB / 366.2 MB, free: 4.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002627/0.1204, allocations: 182.6 kB / 366.4 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002119/0.1226, allocations: 1.49 MB / 367.9 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002268/0.1228, allocations: 90.61 kB / 368 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.82e-05/0.1229, allocations: 48 kB / 368 MB, free: 2.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.1239, allocations: 0.5815 MB / 368.6 MB, free: 1.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1239, allocations: 4 kB / 368.6 MB, free: 1.707 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.895e-05/0.124, allocations: 20 kB / 368.6 MB, free: 1.688 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.124, allocations: 16 kB / 368.6 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007461/0.1248, allocations: 347.7 kB / 369 MB, free: 1.332 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1935/0.3182, allocations: 3.249 MB / 372.2 MB, free: 23.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.3195, allocations: 376.2 kB / 372.6 MB, free: 23.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004839/0.32, allocations: 181 kB / 372.8 MB, free: 23.4 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.32, allocations: 11.09 kB / 372.8 MB, free: 23.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/0.3201, allocations: 40.06 kB / 372.8 MB, free: 23.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.535e-06/0.3201, allocations: 0 / 372.8 MB, free: 23.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002071/0.3221, allocations: 0.6979 MB / 373.5 MB, free: 23.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.66e-05/0.3222, allocations: 210.7 kB / 373.7 MB, free: 22.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003961/0.3262, allocations: 2.891 MB / 376.6 MB, free: 22.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.926e-05/0.3263, allocations: 32.84 kB / 376.6 MB, free: 22.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006263/0.3269, allocations: 0.7893 MB / 377.4 MB, free: 21.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.113e-05/0.327, allocations: 70.3 kB / 377.5 MB, free: 21.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.3271, allocations: 73.47 kB / 377.6 MB, free: 21.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.963e-05/0.3271, allocations: 316.5 kB / 377.9 MB, free: 21.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003539/0.3275, allocations: 120.2 kB / 378 MB, free: 21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004253/0.3279, allocations: 297.3 kB / 378.3 MB, free: 20.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006841/0.3286, allocations: 360.1 kB / 378.6 MB, free: 20.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3287, allocations: 0.9688 kB / 378.6 MB, free: 20.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001295/0.33, allocations: 0.5526 MB / 379.2 MB, free: 20.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.33, allocations: 7.219 kB / 379.2 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.33, allocations: 11.52 kB / 379.2 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000278/0.3303, allocations: 59.67 kB / 379.3 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002772/0.3306, allocations: 72.91 kB / 379.3 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.3319, allocations: 1.734 MB / 381.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005523/0.3325, allocations: 58.03 kB / 381.1 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.566e-05/0.3326, allocations: 16.47 kB / 381.1 MB, free: 18.59 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.0008293/0.3334, allocations: 0.5741 MB / 381.7 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/0.3336, allocations: 165.8 kB / 381.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001196/0.3348, allocations: 0.513 MB / 382.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.3348, allocations: 2.688 kB / 382.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.3348, allocations: 0 / 382.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3348, allocations: 5.406 kB / 382.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.3376, allocations: 1.688 MB / 384.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3376, allocations: 1.156 kB / 384.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002313/0.3379, allocations: 47.19 kB / 384.1 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001666/0.338, allocations: 48.25 kB / 384.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.3381, allocations: 3.094 kB / 384.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001343/0.3394, allocations: 1.679 MB / 385.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3394, allocations: 0.5625 kB / 385.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.341, allocations: 0.7121 MB / 386.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005232/0.3415, allocations: 385.7 kB / 386.9 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.3417, allocations: 11.95 kB / 387 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004104/0.3421, allocations: 47.12 kB / 387 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.885e-05/0.3422, allocations: 35.73 kB / 387 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.3422, allocations: 4.125 kB / 387 MB, free: 14.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002857/0.3451, allocations: 2.067 MB / 389.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3451, allocations: 1.406 kB / 389.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008374/0.3459, allocations: 201.6 kB / 389.3 MB, free: 14.25 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.0008644/0.3468, allocations: 360.8 kB / 389.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.3478, allocations: 450 kB / 390.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.3478, allocations: 1.062 kB / 390.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000475/0.3483, allocations: 267.8 kB / 390.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.3494, allocations: 231.3 kB / 390.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005206/0.3546, allocations: 3.099 MB / 393.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007318/0.3554, allocations: 1.35 MB / 395 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005562/0.3559, allocations: 240 kB / 395.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/0.3561, allocations: 78.31 kB / 395.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of SimCode: time 1.203e-06/0.3561, allocations: 0 / 395.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of Templates: time 0.02545/0.3816, allocations: 15.56 MB / 410.9 MB, free: 11.72 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