Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.622/1.622, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001646/0.001646, allocations: 55.92 kB / 373.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1398, allocations: 53.33 MB / 426.8 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.2443/0.3841, allocations: 5.561 MB / 432.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002512/0.3866, allocations: 1.89 MB / 434.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002842/0.3869, allocations: 17.16 kB / 434.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000887/0.3878, allocations: 0.5234 MB / 434.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006088/0.3884, allocations: 384.4 kB / 435.2 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006558/0.389, allocations: 380.3 kB / 435.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000806/0.3899, allocations: 0.8892 MB / 436.4 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003714/0.3902, allocations: 240.2 kB / 436.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003819/0.3906, allocations: 368 kB / 437 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000475/0.3911, allocations: 469.8 kB / 437.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001046/0.3912, allocations: 79.16 kB / 437.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002025/0.3914, allocations: 126.1 kB / 437.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004374/0.3918, allocations: 0.5825 MB / 438.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004891/0.3923, allocations: 0.7457 MB / 439 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002064/0.3944, allocations: 2.128 MB / 441.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3944, allocations: 0 / 441.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3944, allocations: 4.688 kB / 441.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.474e-05/0.3944, allocations: 0 / 441.1 MB, free: 5.648 MB / 350.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.003233/0.3977, allocations: 2.151 MB / 443.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3977, allocations: 9.578 kB / 443.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002791/0.398, allocations: 199.9 kB / 443.5 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002087/0.4001, allocations: 1.514 MB / 445 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.543e-05/0.4001, allocations: 69.31 kB / 445.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.131e-05/0.4002, allocations: 49.41 kB / 445.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009987/0.4012, allocations: 0.5839 MB / 445.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.4012, allocations: 5 kB / 445.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.8e-05/0.4013, allocations: 21.31 kB / 445.7 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.4013, allocations: 12.34 kB / 445.7 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007241/0.402, allocations: 337.9 kB / 446.1 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004385/0.4064, allocations: 3.252 MB / 449.3 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/0.4076, allocations: 356.7 kB / 449.7 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000482/0.4081, allocations: 168.7 kB / 449.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.661e-05/0.4081, allocations: 7.469 kB / 449.8 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.4081, allocations: 45.45 kB / 449.9 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.225e-06/0.4081, allocations: 0 / 449.9 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001963/0.4101, allocations: 0.7002 MB / 450.6 MB, free: 364 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.4101, allocations: 213.5 kB / 450.8 MB, free: 104 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004297/0.4144, allocations: 2.904 MB / 453.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.707e-05/0.4145, allocations: 33.14 kB / 453.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009684/0.4155, allocations: 0.7864 MB / 454.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.521e-05/0.4156, allocations: 79.56 kB / 454.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.4157, allocations: 70.06 kB / 454.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.4159, allocations: 317.8 kB / 455 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004233/0.4163, allocations: 125.1 kB / 455.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005367/0.4168, allocations: 290.5 kB / 455.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008206/0.4177, allocations: 358.2 kB / 455.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.4177, allocations: 1.281 kB / 455.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001383/0.4191, allocations: 0.5677 MB / 456.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.4191, allocations: 6.719 kB / 456.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.4191, allocations: 3.75 kB / 456.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003115/0.4194, allocations: 64.47 kB / 456.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/0.4197, allocations: 75.88 kB / 456.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001957/0.4217, allocations: 1.715 MB / 458.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006409/0.4223, allocations: 71.3 kB / 458.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.4223, allocations: 11.41 kB / 458.2 MB, free: 11.47 MB / 366.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.0008908/0.4232, allocations: 0.5812 MB / 458.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002727/0.4235, allocations: 176.6 kB / 459 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/0.4248, allocations: 0.5124 MB / 459.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.4248, allocations: 2.281 kB / 459.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.4248, allocations: 0 / 459.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-06/0.4249, allocations: 7.422 kB / 459.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003358/0.4282, allocations: 1.688 MB / 461.2 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.4282, allocations: 0 / 461.2 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002502/0.4285, allocations: 42.78 kB / 461.2 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001914/0.4287, allocations: 55.97 kB / 461.3 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.4287, allocations: 2.5 kB / 461.3 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001766/0.4304, allocations: 1.681 MB / 463 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.802e-06/0.4305, allocations: 3.938 kB / 463 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.4322, allocations: 0.7195 MB / 463.7 MB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006751/0.4329, allocations: 381.3 kB / 464.1 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.433, allocations: 14.52 kB / 464.1 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004755/0.4335, allocations: 42.92 kB / 464.1 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.4336, allocations: 32.88 kB / 464.2 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.4336, allocations: 5.375 kB / 464.2 MB, free: 7.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003753/0.4374, allocations: 2.075 MB / 466.2 MB, free: 6.141 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4374, allocations: 4 kB / 466.3 MB, free: 6.137 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009836/0.4384, allocations: 203.7 kB / 466.5 MB, free: 6.102 MB / 366.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.001356/0.4397, allocations: 368.7 kB / 466.8 MB, free: 5.941 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.441, allocations: 429.5 kB / 467.2 MB, free: 5.688 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/0.441, allocations: 5 kB / 467.2 MB, free: 5.684 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006057/0.4416, allocations: 261.7 kB / 467.5 MB, free: 5.504 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.4428, allocations: 234.4 kB / 467.7 MB, free: 5.367 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005799/0.4486, allocations: 3.045 MB / 470.8 MB, free: 3.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001533/0.4501, allocations: 1.355 MB / 472.1 MB, free: 2.488 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000705/0.4509, allocations: 247 kB / 472.4 MB, free: 2.246 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003521/0.4512, allocations: 87.36 kB / 472.4 MB, free: 2.16 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4512, allocations: 0 / 472.4 MB, free: 2.16 MB / 366.1 MB Notification: Performance of Templates: time 0.03386/0.4851, allocations: 15.83 MB / 488.3 MB, free: 2.41 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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: 5.486967749893665]