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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 83.94 kB / 20.77 MB, free: 0.6016 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.001284/0.001284, allocations: 149.3 kB / 24.05 MB, free: 3.586 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.388/1.388, allocations: 173.3 MB / 200.6 MB, free: 12.86 MB / 190.1 MB " [Timeout remaining time 179] 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=12000,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=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 319.1 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.106e-05/3.305e-05, allocations: 5.656 kB / 319.1 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005826/0.005859, allocations: 4.902 MB / 324 MB, free: 304 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003196/0.009055, allocations: 1.645 MB / 325.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000424/0.009479, allocations: 14.75 kB / 325.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.01066, allocations: 0.5139 MB / 326.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007736/0.01144, allocations: 353.8 kB / 326.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009311/0.01237, allocations: 377 kB / 326.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001173/0.01354, allocations: 0.9213 MB / 327.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004607/0.014, allocations: 226.9 kB / 328 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007773/0.01478, allocations: 0.5165 MB / 328.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006007/0.01538, allocations: 383.6 kB / 328.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001213/0.0155, allocations: 78.19 kB / 329 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002575/0.01576, allocations: 114.9 kB / 329.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006125/0.01637, allocations: 0.5847 MB / 329.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006068/0.01698, allocations: 441 kB / 330.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002582/0.01956, allocations: 2.06 MB / 332.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.01957, allocations: 3.984 kB / 332.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.01957, allocations: 1 kB / 332.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.591e-05/0.0196, allocations: 0 / 332.2 MB, free: 12.03 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.004094/0.0237, allocations: 2.037 MB / 334.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.02374, allocations: 10.31 kB / 334.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003716/0.02412, allocations: 194 kB / 334.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002529/0.02665, allocations: 1.471 MB / 335.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.02679, allocations: 91.88 kB / 336 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.02692, allocations: 49.59 kB / 336 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/0.02843, allocations: 0.8399 MB / 336.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.02845, allocations: 0 / 336.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.589e-05/0.0285, allocations: 22.88 kB / 336.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.02852, allocations: 11 kB / 336.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007678/0.02929, allocations: 347.3 kB / 337.3 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00575/0.03504, allocations: 2.854 MB / 340.1 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.03629, allocations: 366.8 kB / 340.5 MB, free: 5.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005164/0.0368, allocations: 168.7 kB / 340.6 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.492e-05/0.03685, allocations: 8 kB / 340.6 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.795e-05/0.03689, allocations: 42.55 kB / 340.7 MB, free: 5.758 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.595e-06/0.0369, allocations: 0 / 340.7 MB, free: 5.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002187/0.03908, allocations: 0.6142 MB / 341.3 MB, free: 5.133 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001755/0.03926, allocations: 209.6 kB / 341.5 MB, free: 4.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004474/0.04373, allocations: 2.86 MB / 344.4 MB, free: 1.965 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.59e-05/0.04379, allocations: 33.64 kB / 344.4 MB, free: 1.926 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008376/0.04463, allocations: 0.7935 MB / 345.2 MB, free: 1.129 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.845e-05/0.04472, allocations: 79.36 kB / 345.3 MB, free: 1.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.04485, allocations: 69.98 kB / 345.3 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.04502, allocations: 318 kB / 345.6 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000359/0.04537, allocations: 120.6 kB / 345.8 MB, free: 0.543 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00059/0.04596, allocations: 443.1 kB / 346.2 MB, free: 4 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008553/0.04682, allocations: 365.1 kB / 346.5 MB, free: 15.6 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.04683, allocations: 7.938 kB / 346.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00156/0.04839, allocations: 0.5596 MB / 347.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.04841, allocations: 11.94 kB / 347.1 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.04842, allocations: 4 kB / 347.1 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003059/0.04873, allocations: 52.83 kB / 347.2 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003045/0.04903, allocations: 72.08 kB / 347.3 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001968/0.051, allocations: 1.594 MB / 348.8 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006672/0.05167, allocations: 63.8 kB / 348.9 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.484e-05/0.0517, allocations: 16 kB / 348.9 MB, free: 13.11 MB / 318.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.001067/0.05277, allocations: 0.5718 MB / 349.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002794/0.05305, allocations: 166.9 kB / 349.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001264/0.05431, allocations: 0.509 MB / 350.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.05431, allocations: 4 kB / 350.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-06/0.05431, allocations: 4 kB / 350.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.05432, allocations: 0 / 350.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002703/0.05702, allocations: 1.414 MB / 351.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.05702, allocations: 3.938 kB / 351.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002415/0.05727, allocations: 52 kB / 351.6 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001705/0.05744, allocations: 48.81 kB / 351.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.05746, allocations: 4 kB / 351.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001587/0.05904, allocations: 1.547 MB / 353.2 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.05904, allocations: 0 / 353.2 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.06062, allocations: 0.7078 MB / 354 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000641/0.06126, allocations: 310.8 kB / 354.3 MB, free: 7.578 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.0614, allocations: 8 kB / 354.3 MB, free: 7.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/0.06183, allocations: 47.89 kB / 354.3 MB, free: 7.523 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.501e-05/0.06192, allocations: 27.95 kB / 354.3 MB, free: 7.496 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-05/0.06194, allocations: 12 kB / 354.3 MB, free: 7.484 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003234/0.06518, allocations: 2.034 MB / 356.4 MB, free: 5.426 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.06518, allocations: 0 / 356.4 MB, free: 5.426 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000953/0.06613, allocations: 203.6 kB / 356.6 MB, free: 5.227 MB / 318.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.00143/0.06756, allocations: 391 kB / 357 MB, free: 4.988 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00117/0.06873, allocations: 425.3 kB / 357.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.06873, allocations: 0 / 357.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005672/0.0693, allocations: 267.2 kB / 357.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.07038, allocations: 201.8 kB / 357.8 MB, free: 4.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005956/0.07634, allocations: 3.045 MB / 360.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009739/0.07731, allocations: 0.7664 MB / 361.6 MB, free: 204 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006842/0.078, allocations: 234.2 kB / 361.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/0.07821, allocations: 80.5 kB / 362 MB, free: 15.89 MB / 334.1 MB Notification: Performance of SimCode: time 1.182e-06/0.07821, allocations: 0 / 362 MB, free: 15.89 MB / 334.1 MB Notification: Performance of Templates: time 0.03025/0.1085, allocations: 15.6 MB / 377.6 MB, free: 416 kB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.597854562103748]