Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.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.001182/0.001182, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001735/0.002917, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001081/0.001081, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001521/0.002602, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9573/0.9573, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08874/1.046, allocations: 52.5 MB / 238.3 MB, free: 4.434 MB / 234.7 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_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.capacitor.[0-9,]+..v|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.capacitor.[0-9,]+..v|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 239.5 MB, free: 3.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.032e-05/1.155e-05, allocations: 2.312 kB / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.008777/0.008789, allocations: 10.7 MB / 250.2 MB, free: 8.441 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003545/0.01233, allocations: 3.804 MB / 254 MB, free: 4.625 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003531/0.01269, allocations: 35.75 kB / 254.1 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002296/0.01498, allocations: 2.477 MB / 256.6 MB, free: 2.105 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000498/0.01548, allocations: 444.4 kB / 257 MB, free: 1.668 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005604/0.01604, allocations: 0.507 MB / 257.5 MB, free: 1.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005759/0.0218, allocations: 9.864 MB / 267.4 MB, free: 7.273 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002714/0.02451, allocations: 2.707 MB / 270.1 MB, free: 4.457 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1132/0.1377, allocations: 6.829 MB / 276.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006863/0.1445, allocations: 3.933 MB / 280.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003968/0.1485, allocations: 0.9102 MB / 281.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004464/0.153, allocations: 0.9662 MB / 282.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006468/0.1594, allocations: 5.327 MB / 288 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0121/0.1715, allocations: 3.423 MB / 291.5 MB, free: 10.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01539/0.1869, allocations: 15.41 MB / 306.9 MB, free: 44 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.8e-05/0.1869, allocations: 4 kB / 306.9 MB, free: 40 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1869, allocations: 0 / 306.9 MB, free: 40 kB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000691/0.1876, allocations: 0.75 kB / 306.9 MB, free: 40 kB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.03467/0.2223, allocations: 19.33 MB / 326.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2223, allocations: 12.03 kB / 326.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004438/0.2268, allocations: 1.305 MB / 327.5 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02819/0.255, allocations: 12.1 MB / 339.6 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008594/0.2558, allocations: 0.8613 MB / 340.5 MB, free: 15.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001778/0.2576, allocations: 432 kB / 340.9 MB, free: 15.1 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01035/0.268, allocations: 5.859 MB / 346.8 MB, free: 8.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.31e-05/0.268, allocations: 10.44 kB / 346.8 MB, free: 8.672 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007756/0.2688, allocations: 176 kB / 346.9 MB, free: 8.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.39e-05/0.2689, allocations: 97.17 kB / 347 MB, free: 8.406 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003448/0.2723, allocations: 0.9216 MB / 347.9 MB, free: 7.512 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03139/0.3037, allocations: 15.33 MB / 363.3 MB, free: 8.535 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001939/0.3057, allocations: 1.497 MB / 364.8 MB, free: 7.07 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001358/0.307, allocations: 1.164 MB / 365.9 MB, free: 5.949 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-05/0.3071, allocations: 34 kB / 366 MB, free: 5.914 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.309e-05/0.3072, allocations: 77.06 kB / 366 MB, free: 5.828 MB / 330.7 MB Notification: Performance of pre-optimization done (n=201): time 3.656e-06/0.3072, allocations: 0 / 366 MB, free: 5.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=201): time 0.007193/0.3144, allocations: 2.763 MB / 368.8 MB, free: 3.086 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/0.3144, allocations: 85.89 kB / 368.9 MB, free: 2.988 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03472/0.3491, allocations: 18.37 MB / 387.3 MB, free: 1.047 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007726/0.3499, allocations: 73.7 kB / 387.3 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005756/0.3557, allocations: 3.348 MB / 390.7 MB, free: 13.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001097/0.3568, allocations: 0.728 MB / 391.4 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009248/0.3577, allocations: 481 kB / 391.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.086e-05/0.3578, allocations: 301.1 kB / 392.2 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006813/0.3584, allocations: 248.8 kB / 392.4 MB, free: 11.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001726/0.3602, allocations: 2.425 MB / 394.8 MB, free: 8.789 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001721/0.3619, allocations: 1.244 MB / 396.1 MB, free: 7.406 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/0.3619, allocations: 8 kB / 396.1 MB, free: 7.398 MB / 362.7 MB Notification: Performance of matching and sorting (n=312) (initialization): time 0.005004/0.3669, allocations: 1.979 MB / 398.1 MB, free: 5.508 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.3669, allocations: 8 kB / 398.1 MB, free: 5.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/0.3669, allocations: 16 kB / 398.1 MB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007396/0.3677, allocations: 260.5 kB / 398.3 MB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002769/0.3705, allocations: 0.709 MB / 399.1 MB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003411/0.3739, allocations: 3.254 MB / 402.3 MB, free: 1.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003953/0.3778, allocations: 314.7 kB / 402.6 MB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002326/0.3781, allocations: 68 kB / 402.7 MB, free: 0.8516 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 14 (stack.cell[1,1].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,2].limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (272): * Single equations (assignments): 271 * 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 {(3,38)} Notification: Performance of prepare postOptimizeDAE: time 0.005081/0.3831, allocations: 299.1 kB / 403 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002965/0.3861, allocations: 0.874 MB / 403.9 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007333/0.3934, allocations: 1.377 MB / 405.2 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/0.3934, allocations: 20 kB / 405.2 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.3935, allocations: 0 / 405.2 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.3935, allocations: 15.95 kB / 405.3 MB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01643/0.4099, allocations: 6.534 MB / 411.8 MB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.4099, allocations: 4 kB / 411.8 MB, free: 7.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/0.4114, allocations: 0.5587 MB / 412.4 MB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004206/0.4156, allocations: 1.903 MB / 414.3 MB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005003/0.4161, allocations: 180.7 kB / 414.4 MB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/0.4162, allocations: 71.95 kB / 414.5 MB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002274/0.4185, allocations: 2.742 MB / 417.3 MB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.4185, allocations: 0 / 417.3 MB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1365/0.555, allocations: 2.454 MB / 419.7 MB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003215/0.5582, allocations: 81.56 kB / 419.8 MB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003443/0.5617, allocations: 227.4 kB / 420 MB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006618/0.5623, allocations: 229.3 kB / 420.2 MB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001815/0.5625, allocations: 42.97 kB / 420.3 MB, free: 101.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.02343/0.5859, allocations: 9.784 MB / 430.1 MB, free: 101.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5859, allocations: 0 / 430.1 MB, free: 101.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006288/0.5922, allocations: 1.88 MB / 431.9 MB, free: 101.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].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 (171): * Single equations (assignments): 170 * 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 {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001828/0.594, allocations: 0.7275 MB / 432.7 MB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002412/0.5965, allocations: 1.485 MB / 434.1 MB, free: 101 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0003468/0.5968, allocations: 199.4 kB / 434.3 MB, free: 101 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.5979, allocations: 0.901 MB / 435.2 MB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01069/0.6086, allocations: 2.915 MB / 438.2 MB, free: 100.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07754/0.6861, allocations: 29.2 MB / 467.4 MB, free: 82.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005635/0.6918, allocations: 3.573 MB / 470.9 MB, free: 80.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.007212/0.699, allocations: 1.596 MB / 472.5 MB, free: 78.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007257/0.7062, allocations: 2.135 MB / 474.7 MB, free: 76.45 MB / 378.7 MB Notification: Performance of SimCode: time 2.124e-06/0.7062, allocations: 0 / 474.7 MB, free: 76.45 MB / 378.7 MB Notification: Performance of Templates: time 0.3911/1.097, allocations: 150.5 MB / 0.6105 GB, free: 83.34 MB / 394.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_StackRC/CCCV_StackRC.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.0349748423323035]