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.001633/0.001633, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001774/0.001774, allocations: 208.9 kB / 23.73 MB, free: 4.387 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.575/1.575, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.001735/0.001735, allocations: 55.92 kB / 378.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3006, allocations: 53.36 MB / 431.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.01388/0.3144, allocations: 4.961 MB / 436.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006491/0.3209, allocations: 1.8 MB / 438.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008348/0.3218, allocations: 19.88 kB / 438.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002378/0.3241, allocations: 0.5058 MB / 438.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002338/0.3265, allocations: 397.9 kB / 439.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002018/0.3285, allocations: 377.5 kB / 439.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002539/0.331, allocations: 0.8926 MB / 440.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000827/0.3319, allocations: 217.4 kB / 440.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000969/0.3328, allocations: 378.7 kB / 441.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001221/0.3341, allocations: 422.3 kB / 441.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003302/0.3344, allocations: 80 kB / 441.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007017/0.3351, allocations: 120 kB / 441.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.3362, allocations: 0.5921 MB / 442.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001612/0.3378, allocations: 0.5434 MB / 442.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004379/0.3422, allocations: 2.152 MB / 445 MB, free: 9.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3422, allocations: 0 / 445 MB, free: 9.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.3422, allocations: 4 kB / 445 MB, free: 9.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.502e-05/0.3422, allocations: 0 / 445 MB, free: 9.266 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.00718/0.3494, allocations: 2.077 MB / 447.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/0.3495, allocations: 8.031 kB / 447.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005784/0.3501, allocations: 195.7 kB / 447.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004836/0.3549, allocations: 1.459 MB / 448.7 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002056/0.3551, allocations: 96.39 kB / 448.8 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.3552, allocations: 48 kB / 448.9 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002272/0.3575, allocations: 0.8325 MB / 449.7 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/0.3575, allocations: 7.938 kB / 449.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.55e-05/0.3576, allocations: 20 kB / 449.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.293e-05/0.3576, allocations: 12 kB / 449.7 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.359, allocations: 339.8 kB / 450.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009026/0.3681, allocations: 2.842 MB / 452.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002023/0.3701, allocations: 358.5 kB / 453.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008681/0.371, allocations: 172.6 kB / 453.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.738e-05/0.371, allocations: 4 kB / 453.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.174e-05/0.3711, allocations: 42.5 kB / 453.5 MB, free: 476 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 3.246e-06/0.3711, allocations: 0 / 453.5 MB, free: 476 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.003749/0.3748, allocations: 0.6254 MB / 454.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000196/0.375, allocations: 213.6 kB / 454.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007573/0.3826, allocations: 2.88 MB / 457.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.952e-05/0.3827, allocations: 25.7 kB / 457.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001363/0.384, allocations: 0.7974 MB / 458 MB, free: 11.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000163/0.3842, allocations: 75.39 kB / 458.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002088/0.3844, allocations: 73.91 kB / 458.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002145/0.3846, allocations: 322 kB / 458.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006559/0.3853, allocations: 120.6 kB / 458.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/0.3863, allocations: 451 kB / 459 MB, free: 10.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.3877, allocations: 355.9 kB / 459.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.3877, allocations: 0 / 459.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002542/0.3903, allocations: 0.5672 MB / 459.9 MB, free: 9.703 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.3903, allocations: 12.06 kB / 460 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.3903, allocations: 4 kB / 460 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004442/0.3907, allocations: 52.81 kB / 460 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005671/0.3913, allocations: 75.89 kB / 460.1 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002952/0.3943, allocations: 1.59 MB / 461.7 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.3954, allocations: 63.7 kB / 461.7 MB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.129e-05/0.3955, allocations: 12 kB / 461.7 MB, free: 7.793 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.001473/0.397, allocations: 0.5758 MB / 462.3 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000657/0.3976, allocations: 170.8 kB / 462.5 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002473/0.4001, allocations: 0.5022 MB / 463 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.4001, allocations: 8 kB / 463 MB, free: 6.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.4001, allocations: 0 / 463 MB, free: 6.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.4001, allocations: 3.984 kB / 463 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005562/0.4057, allocations: 1.425 MB / 464.4 MB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.4057, allocations: 3.938 kB / 464.4 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00037/0.4061, allocations: 39.97 kB / 464.5 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00029/0.4064, allocations: 60.78 kB / 464.5 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.4064, allocations: 4 kB / 464.5 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002606/0.409, allocations: 1.539 MB / 466.1 MB, free: 3.293 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.409, allocations: 3.938 kB / 466.1 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003207/0.4122, allocations: 0.704 MB / 466.8 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001612/0.4138, allocations: 314.8 kB / 467.1 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004592/0.4143, allocations: 8 kB / 467.1 MB, free: 2.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/0.4154, allocations: 43.95 kB / 467.1 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.4156, allocations: 35.89 kB / 467.2 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.535e-05/0.4157, allocations: 4 kB / 467.2 MB, free: 2.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.006103/0.4218, allocations: 2.043 MB / 469.2 MB, free: 96 kB / 366.1 MB Notification: Performance of sort global known variables: time 4e-07/0.4218, allocations: 4 kB / 469.2 MB, free: 92 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001873/0.4236, allocations: 199.7 kB / 469.4 MB, free: 15.89 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.002078/0.4257, allocations: 391.3 kB / 469.8 MB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.4275, allocations: 428.5 kB / 470.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.4275, allocations: 3.938 kB / 470.2 MB, free: 15.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000813/0.4283, allocations: 267.2 kB / 470.5 MB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002189/0.4305, allocations: 194.1 kB / 470.7 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009467/0.4399, allocations: 3.048 MB / 473.7 MB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001762/0.4417, allocations: 0.7705 MB / 474.5 MB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001344/0.443, allocations: 238.2 kB / 474.7 MB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004102/0.4435, allocations: 75.44 kB / 474.8 MB, free: 10.55 MB / 382.1 MB Notification: Performance of SimCode: time 1.383e-06/0.4435, allocations: 0 / 474.8 MB, free: 10.55 MB / 382.1 MB Notification: Performance of Templates: time 0.04137/0.4848, allocations: 16.96 MB / 491.8 MB, free: 9.719 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 -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.347335707396269]