Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007249/0.0007249, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000914/0.001639, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000677/0.000677, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009996/0.001677, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.008/1.008, allocations: 177.4 MB / 189.9 MB, free: 4.844 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09095/1.099, allocations: 53.86 MB / 243.7 MB, free: 14.92 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.515e-05, allocations: 5.828 kB / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01002/0.01005, allocations: 9.611 MB / 254.6 MB, free: 4.008 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0043/0.01435, allocations: 3.663 MB / 258.3 MB, free: 340 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005092/0.01485, allocations: 27.81 kB / 258.3 MB, free: 312 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.01651, allocations: 1.174 MB / 259.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009422/0.01745, allocations: 0.7186 MB / 260.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006891/0.01814, allocations: 483.2 kB / 260.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004719/0.02286, allocations: 7.188 MB / 267.9 MB, free: 6.723 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002209/0.02507, allocations: 2.194 MB / 270.1 MB, free: 4.422 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1282/0.1532, allocations: 4.982 MB / 275 MB, free: 7.586 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004265/0.1575, allocations: 2.953 MB / 278 MB, free: 7.586 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001885/0.1594, allocations: 0.6636 MB / 278.7 MB, free: 7.586 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001305/0.1607, allocations: 0.7078 MB / 279.4 MB, free: 7.586 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003154/0.1638, allocations: 5.501 MB / 284.9 MB, free: 7.559 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004258/0.1681, allocations: 3.012 MB / 287.9 MB, free: 7.125 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007891/0.176, allocations: 13.82 MB / 301.7 MB, free: 0 / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.708e-05/0.176, allocations: 0 / 301.7 MB, free: 0 / 266.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.176, allocations: 0 / 301.7 MB, free: 0 / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002642/0.1763, allocations: 0 / 301.7 MB, free: 0 / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.02083/0.1971, allocations: 17.5 MB / 319.2 MB, free: 15.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.1971, allocations: 14.03 kB / 319.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001804/0.1989, allocations: 1.118 MB / 320.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/0.2097, allocations: 7.062 MB / 327.4 MB, free: 7.477 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003578/0.2101, allocations: 351.2 kB / 327.7 MB, free: 7.121 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007533/0.2108, allocations: 348.7 kB / 328.1 MB, free: 6.781 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005827/0.2166, allocations: 4.517 MB / 332.6 MB, free: 1.824 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.971e-05/0.2167, allocations: 7.188 kB / 332.6 MB, free: 1.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002632/0.217, allocations: 144 kB / 332.7 MB, free: 1.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.614e-05/0.217, allocations: 81.03 kB / 332.8 MB, free: 1.602 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.2184, allocations: 0.735 MB / 333.5 MB, free: 0.875 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0274/0.2458, allocations: 14.66 MB / 348.2 MB, free: 2.434 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001351/0.2472, allocations: 1.017 MB / 349.2 MB, free: 1.434 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006701/0.2478, allocations: 0.5631 MB / 349.8 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.51e-05/0.2479, allocations: 25 kB / 349.8 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.155e-05/0.248, allocations: 60.78 kB / 349.9 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of pre-optimization done (n=126): time 3.798e-06/0.248, allocations: 0 / 349.9 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of matching and sorting (n=126): time 0.005999/0.254, allocations: 1.849 MB / 351.7 MB, free: 14.97 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.254, allocations: 76.27 kB / 351.8 MB, free: 14.88 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04127/0.2953, allocations: 17.7 MB / 369.5 MB, free: 13.88 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005192/0.2958, allocations: 57.7 kB / 369.5 MB, free: 13.81 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005355/0.3012, allocations: 3.058 MB / 372.6 MB, free: 10.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005198/0.3017, allocations: 468 kB / 373.1 MB, free: 10.28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003981/0.3021, allocations: 323.2 kB / 373.4 MB, free: 9.957 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.182e-05/0.3021, allocations: 301.1 kB / 373.7 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003157/0.3025, allocations: 167.3 kB / 373.8 MB, free: 9.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009097/0.3034, allocations: 1.831 MB / 375.7 MB, free: 7.152 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008589/0.3042, allocations: 0.9576 MB / 376.6 MB, free: 6.055 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.917e-06/0.3042, allocations: 4 kB / 376.6 MB, free: 6.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004494/0.3087, allocations: 1.591 MB / 378.2 MB, free: 4.547 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.3087, allocations: 13 kB / 378.2 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.3088, allocations: 12 kB / 378.2 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004565/0.3092, allocations: 187.3 kB / 378.4 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000854/0.3101, allocations: 393.7 kB / 378.8 MB, free: 3.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002028/0.3121, allocations: 2.551 MB / 381.4 MB, free: 1.359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003976/0.3161, allocations: 238.7 kB / 381.6 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.3162, allocations: 52 kB / 381.6 MB, free: 1.074 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (186): * Single equations (assignments): 185 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.004015/0.3202, allocations: 257.5 kB / 381.9 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002947/0.3232, allocations: 0.7568 MB / 382.7 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005514/0.3287, allocations: 1.815 MB / 384.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.3287, allocations: 12 kB / 384.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.3287, allocations: 0 / 384.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.3287, allocations: 7.922 kB / 384.5 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01922/0.3479, allocations: 6.778 MB / 391.3 MB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.3479, allocations: 0 / 391.3 MB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007271/0.3486, allocations: 262.2 kB / 391.5 MB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006026/0.3547, allocations: 2.357 MB / 393.9 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004654/0.3551, allocations: 128.7 kB / 394 MB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.095e-05/0.3552, allocations: 35.98 kB / 394 MB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001855/0.3571, allocations: 2.215 MB / 396.3 MB, free: 2.379 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3571, allocations: 4 kB / 396.3 MB, free: 2.375 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004635/0.3617, allocations: 1.749 MB / 398 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002752/0.3645, allocations: 36 kB / 398 MB, free: 0.5859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002117/0.3666, allocations: 171.9 kB / 398.2 MB, free: 428 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003208/0.3669, allocations: 176.7 kB / 398.4 MB, free: 252 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-05/0.367, allocations: 35.94 kB / 398.4 MB, free: 216 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.02214/0.3891, allocations: 9.775 MB / 408.2 MB, free: 6.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3891, allocations: 0 / 408.2 MB, free: 6.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008218/0.3973, allocations: 1.852 MB / 410 MB, free: 4.648 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,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 (106): * Single equations (assignments): 105 * 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,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001357/0.3987, allocations: 0.5152 MB / 410.6 MB, free: 4.387 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.4004, allocations: 1.034 MB / 411.6 MB, free: 3.395 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.00022/0.4007, allocations: 177.7 kB / 411.8 MB, free: 3.219 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007576/0.4014, allocations: 0.6177 MB / 412.4 MB, free: 2.605 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01511/0.4165, allocations: 2.261 MB / 414.6 MB, free: 372 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.27/0.6866, allocations: 26.58 MB / 441.2 MB, free: 96.43 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004673/0.6912, allocations: 3.268 MB / 444.5 MB, free: 95.64 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.004688/0.6959, allocations: 1.38 MB / 445.9 MB, free: 95.26 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005831/0.7017, allocations: 1.779 MB / 447.7 MB, free: 93.61 MB / 378.8 MB Notification: Performance of SimCode: time 2.304e-06/0.7018, allocations: 0 / 447.7 MB, free: 93.61 MB / 378.8 MB Notification: Performance of Templates: time 0.3655/1.067, allocations: 172.6 MB / 0.6057 GB, free: 94.31 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.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: 5.839998402632773]