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.001781/0.001781, allocations: 114.2 kB / 19.04 MB, free: 3.281 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.001959/0.001959, allocations: 188.5 kB / 22.21 MB, free: 112 kB / 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.451/1.451, allocations: 225.6 MB / 250.8 MB, free: 13.4 MB / 206.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_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 0.001524/0.001524, allocations: 51.92 kB / 368.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2929, allocations: 52.14 MB / 420.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007882/0.3008, allocations: 5.543 MB / 426.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003031/0.3038, allocations: 1.738 MB / 428.1 MB, free: 7.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003748/0.3042, allocations: 15.94 kB / 428.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.3052, allocations: 0.515 MB / 428.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006354/0.3058, allocations: 358.1 kB / 429 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007862/0.3066, allocations: 377.7 kB / 429.4 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009703/0.3076, allocations: 0.8886 MB / 430.3 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004085/0.308, allocations: 240.8 kB / 430.5 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000393/0.3084, allocations: 362.8 kB / 430.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005041/0.3089, allocations: 470.3 kB / 431.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.309, allocations: 76 kB / 431.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002008/0.3092, allocations: 124 kB / 431.5 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004917/0.3097, allocations: 0.5804 MB / 432.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006435/0.3103, allocations: 0.7377 MB / 432.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002234/0.3125, allocations: 2.132 MB / 435 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3125, allocations: 0 / 435 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3125, allocations: 0 / 435 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.572e-05/0.3126, allocations: 4 kB / 435 MB, free: 0.9727 MB / 334.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.003487/0.3161, allocations: 2.125 MB / 437.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/0.3161, allocations: 15.89 kB / 437.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000339/0.3165, allocations: 195.6 kB / 437.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002361/0.3188, allocations: 1.519 MB / 438.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.3189, allocations: 62.7 kB / 438.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.324e-05/0.319, allocations: 48 kB / 438.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.3201, allocations: 0.5854 MB / 439.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.3201, allocations: 4 kB / 439.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-05/0.3202, allocations: 20 kB / 439.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.3202, allocations: 12 kB / 439.6 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007143/0.3209, allocations: 343.7 kB / 439.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005125/0.326, allocations: 3.239 MB / 443.1 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.3271, allocations: 368.9 kB / 443.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004645/0.3276, allocations: 168.8 kB / 443.7 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.3276, allocations: 3.938 kB / 443.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/0.3277, allocations: 42.56 kB / 443.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.695e-06/0.3277, allocations: 0 / 443.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00197/0.3296, allocations: 0.701 MB / 444.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/0.3298, allocations: 209.6 kB / 444.6 MB, free: 6.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003761/0.3335, allocations: 2.896 MB / 447.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.814e-05/0.3336, allocations: 29.7 kB / 447.5 MB, free: 4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007978/0.3344, allocations: 0.786 MB / 448.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.905e-05/0.3345, allocations: 83.27 kB / 448.4 MB, free: 3.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.3346, allocations: 70.02 kB / 448.5 MB, free: 3.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.3347, allocations: 318 kB / 448.8 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003453/0.3351, allocations: 120.6 kB / 448.9 MB, free: 2.613 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004699/0.3356, allocations: 288.9 kB / 449.2 MB, free: 2.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007177/0.3363, allocations: 373.5 kB / 449.5 MB, free: 1.848 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3363, allocations: 0 / 449.5 MB, free: 1.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001362/0.3376, allocations: 0.5596 MB / 450.1 MB, free: 1.277 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.3377, allocations: 8 kB / 450.1 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.3377, allocations: 4 kB / 450.1 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002847/0.338, allocations: 60.95 kB / 450.2 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002978/0.3383, allocations: 83.95 kB / 450.3 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.3401, allocations: 1.712 MB / 452 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006452/0.3407, allocations: 67.8 kB / 452 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.3408, allocations: 12 kB / 452 MB, free: 15.2 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.0009155/0.3417, allocations: 0.5795 MB / 452.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002509/0.3419, allocations: 170.8 kB / 452.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00121/0.3431, allocations: 0.518 MB / 453.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.3431, allocations: 4 kB / 453.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.3431, allocations: 0 / 453.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.3431, allocations: 0 / 453.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002791/0.3459, allocations: 1.686 MB / 455 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3459, allocations: 4 kB / 455 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002379/0.3462, allocations: 47.91 kB / 455 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001716/0.3463, allocations: 44.83 kB / 455.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.179e-05/0.3464, allocations: 12.12 kB / 455.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001588/0.348, allocations: 1.662 MB / 456.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.348, allocations: 8.016 kB / 456.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.3495, allocations: 0.7175 MB / 457.5 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006203/0.3501, allocations: 391.9 kB / 457.9 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.3503, allocations: 4 kB / 457.9 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004093/0.3507, allocations: 43.95 kB / 457.9 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.3508, allocations: 35.92 kB / 458 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.3508, allocations: 7.984 kB / 458 MB, free: 8.988 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002955/0.3538, allocations: 2.067 MB / 460 MB, free: 6.898 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3538, allocations: 0 / 460 MB, free: 6.898 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009107/0.3547, allocations: 207.6 kB / 460.2 MB, free: 6.695 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.001316/0.356, allocations: 368.9 kB / 460.6 MB, free: 6.461 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.3571, allocations: 421.5 kB / 461 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.3571, allocations: 4 kB / 461 MB, free: 6.035 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005265/0.3577, allocations: 263.2 kB / 461.3 MB, free: 5.766 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.359, allocations: 226.6 kB / 461.5 MB, free: 5.539 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006098/0.3651, allocations: 3.095 MB / 464.6 MB, free: 2.402 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001177/0.3663, allocations: 1.359 MB / 465.9 MB, free: 1.016 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007418/0.367, allocations: 241.7 kB / 466.2 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000237/0.3672, allocations: 79.44 kB / 466.3 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of SimCode: time 1.343e-06/0.3672, allocations: 0 / 466.3 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of Templates: time 0.03425/0.4015, allocations: 15.92 MB / 482.2 MB, free: 0.875 MB / 382.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: 5.099034718237817]