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.001652/0.001652, allocations: 108.6 kB / 21.19 MB, free: 0.7578 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.001951/0.001951, allocations: 193.1 kB / 24.47 MB, free: 4.152 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.488/1.488, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.001603/0.001603, allocations: 47.92 kB / 371.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2707, allocations: 52.19 MB / 423.9 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007593/0.2783, allocations: 5.565 MB / 429.4 MB, free: 9.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003184/0.2815, allocations: 1.738 MB / 431.2 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004581/0.282, allocations: 11.94 kB / 431.2 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.2831, allocations: 0.5213 MB / 431.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008223/0.284, allocations: 350.1 kB / 432 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009753/0.2849, allocations: 374.5 kB / 432.4 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001305/0.2862, allocations: 0.8926 MB / 433.3 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005094/0.2867, allocations: 241.2 kB / 433.5 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005999/0.2873, allocations: 370.8 kB / 433.9 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007468/0.2881, allocations: 462.3 kB / 434.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000155/0.2882, allocations: 84 kB / 434.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002868/0.2885, allocations: 131.8 kB / 434.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005407/0.2891, allocations: 0.5843 MB / 435.1 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008943/0.29, allocations: 0.7339 MB / 435.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002471/0.2924, allocations: 2.124 MB / 438 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2924, allocations: 0 / 438 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2924, allocations: 0 / 438 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.198e-05/0.2925, allocations: 0 / 438 MB, free: 0.5234 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.004212/0.2967, allocations: 2.066 MB / 440.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.2968, allocations: 12.03 kB / 440.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00032/0.2971, allocations: 199.6 kB / 440.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002741/0.2998, allocations: 1.439 MB / 441.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.2999, allocations: 100.4 kB / 441.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.46e-05/0.3, allocations: 40 kB / 441.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.3012, allocations: 0.5893 MB / 442.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.312e-05/0.3012, allocations: 0 / 442.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.383e-05/0.3013, allocations: 23.98 kB / 442.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.3013, allocations: 12 kB / 442.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007833/0.3021, allocations: 347.8 kB / 442.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005487/0.3075, allocations: 3.179 MB / 446 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.3087, allocations: 366 kB / 446.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005155/0.3092, allocations: 172.8 kB / 446.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.3092, allocations: 11.97 kB / 446.5 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.3093, allocations: 34.56 kB / 446.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.234e-06/0.3093, allocations: 0 / 446.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002046/0.3113, allocations: 0.6244 MB / 447.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001384/0.3114, allocations: 213.6 kB / 447.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004358/0.3158, allocations: 2.888 MB / 450.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.203e-05/0.3159, allocations: 33.7 kB / 450.3 MB, free: 3.828 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008151/0.3167, allocations: 0.786 MB / 451.1 MB, free: 3.035 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.3168, allocations: 95.25 kB / 451.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.3169, allocations: 62.03 kB / 451.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.3171, allocations: 318 kB / 451.6 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000372/0.3175, allocations: 124.6 kB / 451.7 MB, free: 2.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004888/0.318, allocations: 292.9 kB / 452 MB, free: 2.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007612/0.3187, allocations: 365.6 kB / 452.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.3187, allocations: 4 kB / 452.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001435/0.3202, allocations: 0.5635 MB / 452.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.3202, allocations: 4 kB / 452.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.3202, allocations: 4 kB / 452.9 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002889/0.3205, allocations: 60.81 kB / 453 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/0.3208, allocations: 80.02 kB / 453 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/0.3227, allocations: 1.614 MB / 454.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006528/0.3234, allocations: 63.64 kB / 454.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.3234, allocations: 12 kB / 454.7 MB, free: 15.15 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.0008648/0.3243, allocations: 0.5828 MB / 455.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002998/0.3246, allocations: 174.8 kB / 455.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001344/0.3259, allocations: 0.5081 MB / 456 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.3259, allocations: 4 kB / 456 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.3259, allocations: 4 kB / 456 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.3259, allocations: 0 / 456 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003269/0.3292, allocations: 1.657 MB / 457.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3292, allocations: 0 / 457.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002465/0.3294, allocations: 52 kB / 457.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000182/0.3296, allocations: 56.73 kB / 457.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.3296, allocations: 4 kB / 457.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001645/0.3313, allocations: 1.558 MB / 459.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3313, allocations: 0 / 459.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001674/0.333, allocations: 0.7148 MB / 460 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000822/0.3338, allocations: 318.8 kB / 460.4 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.3339, allocations: 4 kB / 460.4 MB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004308/0.3344, allocations: 47.95 kB / 460.4 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.982e-05/0.3344, allocations: 35.88 kB / 460.4 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.3345, allocations: 8 kB / 460.5 MB, free: 9.211 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003055/0.3375, allocations: 2.059 MB / 462.5 MB, free: 7.129 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3375, allocations: 0 / 462.5 MB, free: 7.129 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009144/0.3384, allocations: 211.6 kB / 462.7 MB, free: 6.922 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.001384/0.3398, allocations: 366 kB / 463.1 MB, free: 6.688 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.3409, allocations: 430 kB / 463.5 MB, free: 6.258 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.3409, allocations: 4 kB / 463.5 MB, free: 6.254 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005513/0.3415, allocations: 257.1 kB / 463.7 MB, free: 5.992 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.3426, allocations: 222.7 kB / 464 MB, free: 5.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005966/0.3486, allocations: 3.204 MB / 467.2 MB, free: 2.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/0.3498, allocations: 1.354 MB / 468.5 MB, free: 1.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000309/0.3501, allocations: 83.38 kB / 468.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3501, allocations: 0 / 468.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of Templates: time 0.0369/0.387, allocations: 24.85 MB / 493.5 MB, free: 8.219 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/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: 9.22020013909787]