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.001885/0.001885, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002326/0.002326, allocations: 210.7 kB / 24.48 MB, free: 3.977 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.939/1.939, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.002356/0.002356, allocations: 55.92 kB / 378.9 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3341, allocations: 53.37 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.009675/0.3437, allocations: 4.958 MB / 437.3 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004622/0.3484, allocations: 1.8 MB / 439.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005955/0.3489, allocations: 15.94 kB / 439.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001671/0.3506, allocations: 0.5135 MB / 439.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001404/0.352, allocations: 386 kB / 440 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001324/0.3533, allocations: 382.4 kB / 440.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001535/0.3549, allocations: 0.8926 MB / 441.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005834/0.3555, allocations: 237.3 kB / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006087/0.3561, allocations: 374.7 kB / 441.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007283/0.3568, allocations: 470.3 kB / 442.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001481/0.357, allocations: 76 kB / 442.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003402/0.3573, allocations: 124 kB / 442.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006902/0.358, allocations: 0.5882 MB / 443.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007533/0.3587, allocations: 0.5473 MB / 443.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002765/0.3615, allocations: 2.156 MB / 445.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.3615, allocations: 4 kB / 445.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3615, allocations: 0 / 445.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.814e-05/0.3615, allocations: 0 / 445.8 MB, free: 9.211 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.004453/0.366, allocations: 2.07 MB / 447.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.366, allocations: 8.031 kB / 447.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003916/0.3664, allocations: 195.7 kB / 448.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003379/0.3698, allocations: 1.47 MB / 449.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.37, allocations: 88.41 kB / 449.6 MB, free: 5.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-05/0.37, allocations: 48 kB / 449.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.3716, allocations: 0.8364 MB / 450.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.3716, allocations: 0 / 450.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-05/0.3717, allocations: 24 kB / 450.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.3717, allocations: 12 kB / 450.5 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009207/0.3726, allocations: 339.7 kB / 450.9 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006292/0.3789, allocations: 2.85 MB / 453.7 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.3804, allocations: 357.4 kB / 454.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006377/0.381, allocations: 172.7 kB / 454.2 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.467e-05/0.381, allocations: 0 / 454.2 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/0.3811, allocations: 46.56 kB / 454.3 MB, free: 420 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.144e-06/0.3811, allocations: 0 / 454.3 MB, free: 420 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002656/0.3838, allocations: 0.6159 MB / 454.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/0.3839, allocations: 217.6 kB / 455.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005662/0.3896, allocations: 2.869 MB / 458 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.291e-05/0.3897, allocations: 29.7 kB / 458 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001046/0.3907, allocations: 0.8013 MB / 458.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/0.3908, allocations: 79.38 kB / 458.9 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/0.391, allocations: 73.92 kB / 459 MB, free: 11.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.3912, allocations: 318 kB / 459.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004736/0.3917, allocations: 120.6 kB / 459.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007066/0.3924, allocations: 443 kB / 459.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009476/0.3933, allocations: 359.9 kB / 460.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.3933, allocations: 4 kB / 460.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001917/0.3952, allocations: 0.5671 MB / 460.7 MB, free: 9.656 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.3953, allocations: 15.88 kB / 460.8 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.3953, allocations: 4 kB / 460.8 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003462/0.3956, allocations: 52.83 kB / 460.8 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003916/0.396, allocations: 75.89 kB / 460.9 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.3981, allocations: 1.59 MB / 462.5 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008055/0.3989, allocations: 59.8 kB / 462.5 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-05/0.399, allocations: 16 kB / 462.6 MB, free: 7.742 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.001116/0.4001, allocations: 0.5759 MB / 463.1 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000318/0.4004, allocations: 170.8 kB / 463.3 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001647/0.402, allocations: 0.5123 MB / 463.8 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.402, allocations: 4 kB / 463.8 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.402, allocations: 4 kB / 463.8 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.402, allocations: 0 / 463.8 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003901/0.406, allocations: 1.418 MB / 465.2 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.406, allocations: 3.938 kB / 465.2 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003357/0.4063, allocations: 48 kB / 465.3 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002618/0.4066, allocations: 52.77 kB / 465.3 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/0.4066, allocations: 0 / 465.3 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002054/0.4086, allocations: 1.551 MB / 466.9 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4086, allocations: 0 / 466.9 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002218/0.4109, allocations: 0.7079 MB / 467.6 MB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.412, allocations: 307 kB / 467.9 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/0.4122, allocations: 8 kB / 467.9 MB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005778/0.4128, allocations: 43.94 kB / 467.9 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.4129, allocations: 35.94 kB / 468 MB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/0.413, allocations: 8 kB / 468 MB, free: 2.109 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004191/0.4172, allocations: 2.043 MB / 470 MB, free: 44 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4172, allocations: 0 / 470 MB, free: 44 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001545/0.4187, allocations: 207.7 kB / 470.2 MB, free: 15.84 MB / 382.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.001696/0.4204, allocations: 396 kB / 470.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001541/0.4219, allocations: 418.6 kB / 471 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.4219, allocations: 4 kB / 471 MB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007047/0.4226, allocations: 267.2 kB / 471.3 MB, free: 14.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001746/0.4244, allocations: 190.6 kB / 471.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006769/0.4312, allocations: 3.051 MB / 474.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001205/0.4324, allocations: 0.7666 MB / 475.3 MB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007735/0.4331, allocations: 238.2 kB / 475.5 MB, free: 10.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002736/0.4334, allocations: 83.38 kB / 475.6 MB, free: 10.5 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4334, allocations: 0 / 475.6 MB, free: 10.5 MB / 382.1 MB Notification: Performance of Templates: time 0.04006/0.4735, allocations: 17.05 MB / 492.7 MB, free: 9.574 MB / 398.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/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: 7.25099298999703]