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.0008873/0.0008873, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001184/0.002071, allocations: 445.8 kB / 10.44 MB, free: 256 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.0009436/0.0009436, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001342/0.002286, allocations: 475.6 kB / 11.8 MB, free: 2.367 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.9899/0.9899, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.171/1.161, allocations: 52.48 MB / 238.5 MB, free: 7.645 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.162e-06/1.162e-06, allocations: 0 / 239.7 MB, free: 6.395 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.837e-05/1.954e-05, allocations: 4.5 kB / 239.7 MB, free: 6.391 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.007677/0.007697, allocations: 10.7 MB / 250.4 MB, free: 11.66 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004872/0.01257, allocations: 3.795 MB / 254.2 MB, free: 7.871 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007555/0.01332, allocations: 36.44 kB / 254.3 MB, free: 7.836 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002845/0.01617, allocations: 2.47 MB / 256.7 MB, free: 5.363 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000923/0.01709, allocations: 455.3 kB / 257.2 MB, free: 4.918 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007962/0.01789, allocations: 0.5224 MB / 257.7 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01021/0.0281, allocations: 9.858 MB / 267.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003517/0.03162, allocations: 2.702 MB / 270.3 MB, free: 7.695 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009777/0.0414, allocations: 6.836 MB / 277.1 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006221/0.04762, allocations: 3.934 MB / 281 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002858/0.05047, allocations: 0.9062 MB / 281.9 MB, free: 11.92 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003684/0.05416, allocations: 0.9725 MB / 282.9 MB, free: 10.95 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004585/0.05874, allocations: 5.315 MB / 288.2 MB, free: 5.621 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0101/0.06884, allocations: 3.423 MB / 291.7 MB, free: 2.188 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.016/0.08484, allocations: 15.41 MB / 307.1 MB, free: 2.734 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.041e-05/0.08486, allocations: 4 kB / 307.1 MB, free: 2.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.08486, allocations: 0 / 307.1 MB, free: 2.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0007955/0.08566, allocations: 0 / 307.1 MB, free: 2.73 MB / 298.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.2638/0.3494, allocations: 19.3 MB / 326.4 MB, free: 55.64 MB / 314.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.3495, allocations: 9.219 kB / 326.4 MB, free: 55.64 MB / 314.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004414/0.3539, allocations: 1.301 MB / 327.7 MB, free: 55.64 MB / 314.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02483/0.3787, allocations: 12.11 MB / 339.8 MB, free: 50.98 MB / 314.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004783/0.3792, allocations: 0.8701 MB / 340.7 MB, free: 50.2 MB / 314.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006864/0.3799, allocations: 435.1 kB / 341.1 MB, free: 50.06 MB / 314.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004901/0.3848, allocations: 5.853 MB / 346.9 MB, free: 45.62 MB / 314.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.756e-05/0.3849, allocations: 7.562 kB / 346.9 MB, free: 45.61 MB / 314.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002977/0.3852, allocations: 176 kB / 347.1 MB, free: 45.44 MB / 314.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.512e-05/0.3852, allocations: 96 kB / 347.2 MB, free: 45.35 MB / 314.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001648/0.3869, allocations: 0.92 MB / 348.1 MB, free: 44.45 MB / 314.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02757/0.4144, allocations: 15.33 MB / 363.5 MB, free: 29.44 MB / 314.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001762/0.4162, allocations: 1.509 MB / 365 MB, free: 27.97 MB / 314.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/0.4174, allocations: 1.16 MB / 366.1 MB, free: 26.86 MB / 314.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.687e-05/0.4174, allocations: 34 kB / 366.2 MB, free: 26.82 MB / 314.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.902e-05/0.4175, allocations: 81.06 kB / 366.2 MB, free: 26.73 MB / 314.8 MB Notification: Performance of pre-optimization done (n=201): time 4.849e-06/0.4175, allocations: 0 / 366.2 MB, free: 26.73 MB / 314.8 MB Notification: Performance of matching and sorting (n=201): time 0.00707/0.4246, allocations: 2.763 MB / 369 MB, free: 23.98 MB / 314.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.4246, allocations: 85.91 kB / 369.1 MB, free: 23.88 MB / 314.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02959/0.4542, allocations: 18.37 MB / 387.4 MB, free: 6.02 MB / 314.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006927/0.4549, allocations: 73.7 kB / 387.5 MB, free: 5.941 MB / 314.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005121/0.46, allocations: 3.345 MB / 390.9 MB, free: 2.574 MB / 314.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009104/0.4609, allocations: 0.7319 MB / 391.6 MB, free: 1.836 MB / 314.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006458/0.4616, allocations: 477 kB / 392.1 MB, free: 1.363 MB / 314.8 MB Notification: Performance of setup shared object (initialization): time 3.222e-05/0.4616, allocations: 301.1 kB / 392.4 MB, free: 1.066 MB / 314.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000495/0.4621, allocations: 248.8 kB / 392.6 MB, free: 0.8203 MB / 314.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.4634, allocations: 2.422 MB / 395 MB, free: 13.76 MB / 330.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/0.465, allocations: 1.297 MB / 396.3 MB, free: 12.27 MB / 330.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.465, allocations: 7.938 kB / 396.3 MB, free: 12.26 MB / 330.8 MB Notification: Performance of matching and sorting (n=312) (initialization): time 0.005618/0.4706, allocations: 1.993 MB / 398.3 MB, free: 10.25 MB / 330.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.45e-05/0.4706, allocations: 16.19 kB / 398.3 MB, free: 10.24 MB / 330.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.4706, allocations: 16 kB / 398.4 MB, free: 10.22 MB / 330.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006944/0.4713, allocations: 252 kB / 398.6 MB, free: 9.977 MB / 330.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/0.4732, allocations: 0.709 MB / 399.3 MB, free: 9.266 MB / 330.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003172/0.4764, allocations: 3.247 MB / 402.6 MB, free: 5.93 MB / 330.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005082/0.4815, allocations: 306.7 kB / 402.9 MB, free: 5.629 MB / 330.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005306/0.482, allocations: 75.98 kB / 402.9 MB, free: 5.555 MB / 330.8 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.0059/0.4879, allocations: 303.6 kB / 403.2 MB, free: 5.25 MB / 330.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003513/0.4914, allocations: 0.8739 MB / 404.1 MB, free: 4.375 MB / 330.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004881/0.4963, allocations: 1.377 MB / 405.5 MB, free: 2.988 MB / 330.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.4963, allocations: 20 kB / 405.5 MB, free: 2.969 MB / 330.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.4963, allocations: 0 / 405.5 MB, free: 2.969 MB / 330.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/0.4963, allocations: 7.969 kB / 405.5 MB, free: 2.961 MB / 330.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02011/0.5164, allocations: 6.536 MB / 412 MB, free: 12.39 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.5165, allocations: 4 kB / 412 MB, free: 12.38 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/0.5179, allocations: 0.5557 MB / 412.6 MB, free: 11.83 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005418/0.5233, allocations: 1.903 MB / 414.5 MB, free: 9.918 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005811/0.5239, allocations: 186.8 kB / 414.7 MB, free: 9.734 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001554/0.5241, allocations: 67.97 kB / 414.7 MB, free: 9.668 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002403/0.5265, allocations: 2.756 MB / 417.5 MB, free: 6.816 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.5265, allocations: 0 / 417.5 MB, free: 6.816 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004922/0.5314, allocations: 2.465 MB / 420 MB, free: 4.324 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002635/0.534, allocations: 79.97 kB / 420 MB, free: 4.246 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003349/0.5374, allocations: 236.2 kB / 420.3 MB, free: 4.016 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004603/0.5378, allocations: 221.6 kB / 420.5 MB, free: 3.797 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001511/0.538, allocations: 39.98 kB / 420.5 MB, free: 3.758 MB / 346.8 MB Notification: Performance of sorting global known variables: time 0.02312/0.5611, allocations: 9.792 MB / 430.3 MB, free: 10.07 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5611, allocations: 0 / 430.3 MB, free: 10.07 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.006931/0.568, allocations: 1.88 MB / 432.2 MB, free: 8.188 MB / 362.8 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.001899/0.5699, allocations: 0.7291 MB / 432.9 MB, free: 7.789 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.002447/0.5724, allocations: 1.519 MB / 434.5 MB, free: 6.301 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 0.000272/0.5727, allocations: 195.7 kB / 434.6 MB, free: 6.109 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00122/0.5739, allocations: 1.004 MB / 435.6 MB, free: 5.098 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02051/0.5944, allocations: 17.43 MB / 453.1 MB, free: 1.016 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06856/0.663, allocations: 29.22 MB / 482.3 MB, free: 3.613 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00741/0.6704, allocations: 3.575 MB / 485.9 MB, free: 12 kB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.1231/0.7935, allocations: 1.592 MB / 487.5 MB, free: 137.8 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00857/0.8021, allocations: 2.164 MB / 489.6 MB, free: 137.8 MB / 410.8 MB Notification: Performance of SimCode: time 1.814e-06/0.8021, allocations: 0 / 489.6 MB, free: 137.8 MB / 410.8 MB Notification: Performance of Templates: time 0.3071/1.109, allocations: 152.1 MB / 0.6267 GB, free: 132.6 MB / 410.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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.723629854619503]