Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 124.5 kB / 18.46 MB, free: 4.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 190.6 kB / 21.4 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.6 MB / 249.8 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] 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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 47.92 kB / 366.8 MB, free: 348 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1016, allocations: 52.15 MB / 418.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007945/0.1095, allocations: 6.032 MB / 425 MB, free: 6.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003745/0.1133, allocations: 2.155 MB / 427.1 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004052/0.1137, allocations: 19.94 kB / 427.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001415/0.1151, allocations: 0.6263 MB / 427.8 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008208/0.1159, allocations: 405.8 kB / 428.2 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009615/0.1169, allocations: 414.8 kB / 428.6 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001683/0.1185, allocations: 1.304 MB / 429.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006059/0.1192, allocations: 349.8 kB / 430.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007266/0.1199, allocations: 0.4906 MB / 430.7 MB, free: 272 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008184/0.1207, allocations: 0.6111 MB / 431.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001663/0.1209, allocations: 116 kB / 431.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000357/0.1212, allocations: 172 kB / 431.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005633/0.1218, allocations: 0.6505 MB / 432.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009309/0.1227, allocations: 0.8855 MB / 433.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002937/0.1257, allocations: 2.642 MB / 435.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1257, allocations: 0 / 435.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1257, allocations: 4 kB / 435.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.856e-05/0.1257, allocations: 0 / 435.8 MB, free: 11.17 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004262/0.13, allocations: 2.426 MB / 438.2 MB, free: 8.684 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.13, allocations: 8.031 kB / 438.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003518/0.1304, allocations: 219.5 kB / 438.4 MB, free: 8.461 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002672/0.133, allocations: 1.693 MB / 440.1 MB, free: 6.699 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.1332, allocations: 104.7 kB / 440.2 MB, free: 6.582 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.1333, allocations: 63.98 kB / 440.3 MB, free: 6.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.1349, allocations: 0.8258 MB / 441.1 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.1349, allocations: 0 / 441.1 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-05/0.135, allocations: 28 kB / 441.1 MB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.135, allocations: 16 kB / 441.2 MB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.1361, allocations: 0.5477 MB / 441.7 MB, free: 5.051 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006797/0.1429, allocations: 3.997 MB / 445.7 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.1444, allocations: 0.4958 MB / 446.2 MB, free: 440 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007851/0.1452, allocations: 345.2 kB / 446.5 MB, free: 92 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.1453, allocations: 4.281 kB / 446.5 MB, free: 88 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.871e-05/0.1453, allocations: 38.84 kB / 446.6 MB, free: 40 kB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.925e-06/0.1453, allocations: 4 kB / 446.6 MB, free: 36 kB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.1829/0.3282, allocations: 0.9444 MB / 447.5 MB, free: 29.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.583e-05/0.3283, allocations: 264.6 kB / 447.8 MB, free: 29.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003741/0.332, allocations: 3.146 MB / 450.9 MB, free: 28.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.608e-05/0.3321, allocations: 33.05 kB / 451 MB, free: 28.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006204/0.3327, allocations: 0.8694 MB / 451.8 MB, free: 28.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.499e-05/0.3328, allocations: 120 kB / 452 MB, free: 28.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.333, allocations: 96.7 kB / 452.1 MB, free: 28.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.176e-05/0.333, allocations: 324.6 kB / 452.4 MB, free: 28.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004841/0.3335, allocations: 211.1 kB / 452.6 MB, free: 28.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005484/0.3341, allocations: 394.9 kB / 453 MB, free: 27.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009033/0.335, allocations: 0.5195 MB / 453.5 MB, free: 27.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.335, allocations: 1.094 kB / 453.5 MB, free: 27.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001787/0.3368, allocations: 0.7781 MB / 454.3 MB, free: 27.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3368, allocations: 6.922 kB / 454.3 MB, free: 27.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.3368, allocations: 4.25 kB / 454.3 MB, free: 27.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003023/0.3371, allocations: 69.02 kB / 454.3 MB, free: 27.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000479/0.3376, allocations: 123.1 kB / 454.5 MB, free: 27.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.339, allocations: 1.804 MB / 456.3 MB, free: 25.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006919/0.3397, allocations: 73.53 kB / 456.3 MB, free: 25.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.568e-05/0.3397, allocations: 18.09 kB / 456.3 MB, free: 25.63 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (51): * Single equations (assignments): 50 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0008796/0.3406, allocations: 0.655 MB / 457 MB, free: 25.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002655/0.3409, allocations: 192.1 kB / 457.2 MB, free: 25.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002904/0.3412, allocations: 221.1 kB / 457.4 MB, free: 25.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3412, allocations: 3.594 kB / 457.4 MB, free: 25.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3412, allocations: 7.75 kB / 457.4 MB, free: 25.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3412, allocations: 3.406 kB / 457.4 MB, free: 25.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003346/0.3445, allocations: 2.156 MB / 459.6 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3445, allocations: 1.094 kB / 459.6 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004156/0.345, allocations: 85.72 kB / 459.7 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002024/0.3452, allocations: 56.09 kB / 459.7 MB, free: 24.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.3452, allocations: 8.562 kB / 459.7 MB, free: 24.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001225/0.3464, allocations: 1.746 MB / 461.5 MB, free: 22.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3464, allocations: 3.719 kB / 461.5 MB, free: 22.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001914/0.3483, allocations: 0.9789 MB / 462.5 MB, free: 22.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006601/0.349, allocations: 452.2 kB / 462.9 MB, free: 21.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000158/0.3491, allocations: 16.89 kB / 462.9 MB, free: 21.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005506/0.3497, allocations: 54.62 kB / 463 MB, free: 21.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.3498, allocations: 37.55 kB / 463 MB, free: 21.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.65e-05/0.3498, allocations: 12.38 kB / 463 MB, free: 21.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002974/0.3528, allocations: 2.251 MB / 465.3 MB, free: 20.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3528, allocations: 1.688 kB / 465.3 MB, free: 20.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000971/0.3538, allocations: 253.6 kB / 465.5 MB, free: 20.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 0.001741/0.3555, allocations: 480.5 kB / 466 MB, free: 20.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001377/0.3569, allocations: 0.5841 MB / 466.6 MB, free: 20.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3569, allocations: 4.719 kB / 466.6 MB, free: 20.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000629/0.3575, allocations: 348.4 kB / 466.9 MB, free: 20.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.3588, allocations: 294.5 kB / 467.2 MB, free: 20.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006326/0.3651, allocations: 3.791 MB / 471 MB, free: 18.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001217/0.3664, allocations: 1.48 MB / 472.5 MB, free: 17.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004523/0.3668, allocations: 100 kB / 472.6 MB, free: 17.64 MB / 366.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3668, allocations: 4 kB / 472.6 MB, free: 17.64 MB / 366.1 MB Notification: Performance of Templates: time 0.03463/0.4014, allocations: 29.62 MB / 0.4904 GB, free: 8.664 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.497614858904853]