Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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.001343/0.001343, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002038/0.003381, 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.001243/0.001243, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001926/0.003169, 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.9701/0.9701, allocations: 173.4 MB / 185.8 MB, free: 8.977 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.104/1.074, allocations: 52.49 MB / 238.3 MB, free: 4.422 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_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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 239.5 MB, free: 3.18 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.768e-05/1.913e-05, allocations: 2.312 kB / 239.5 MB, free: 3.176 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01106/0.01108, allocations: 9.574 MB / 249.1 MB, free: 9.559 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006363/0.01744, allocations: 3.5 MB / 252.6 MB, free: 6.047 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008463/0.01829, allocations: 27.81 kB / 252.6 MB, free: 6.02 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003044/0.02133, allocations: 1.178 MB / 253.8 MB, free: 4.836 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001387/0.02272, allocations: 0.6759 MB / 254.5 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.02376, allocations: 499.1 kB / 255 MB, free: 3.668 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.007158/0.03092, allocations: 7.187 MB / 262.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003668/0.03458, allocations: 2.194 MB / 264.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008147/0.04273, allocations: 4.951 MB / 269.3 MB, free: 5.109 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005362/0.04809, allocations: 2.963 MB / 272.3 MB, free: 2.141 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00204/0.05013, allocations: 0.6602 MB / 272.9 MB, free: 1.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001902/0.05204, allocations: 0.707 MB / 273.6 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1164/0.1685, allocations: 5.475 MB / 279.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01158/0.18, allocations: 3.015 MB / 282.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0134/0.1934, allocations: 13.79 MB / 295.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.063e-05/0.1935, allocations: 3.5 kB / 295.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1935, allocations: 0 / 295.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0006421/0.1941, allocations: 0 / 295.9 MB, free: 11.21 MB / 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.0322/0.2263, allocations: 17.46 MB / 313.4 MB, free: 11.87 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.2263, allocations: 16.02 kB / 313.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003924/0.2303, allocations: 1.117 MB / 314.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01737/0.2476, allocations: 7.028 MB / 321.6 MB, free: 4.086 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005147/0.2481, allocations: 353.9 kB / 321.9 MB, free: 3.727 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001309/0.2495, allocations: 344 kB / 322.2 MB, free: 3.391 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007358/0.2568, allocations: 4.521 MB / 326.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.771e-05/0.2569, allocations: 1.688 kB / 326.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003785/0.2572, allocations: 146.2 kB / 326.9 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.535e-05/0.2573, allocations: 80 kB / 327 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001668/0.259, allocations: 0.7377 MB / 327.7 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03049/0.2894, allocations: 14.66 MB / 342.4 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.2908, allocations: 1.02 MB / 343.4 MB, free: 14.04 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006464/0.2914, allocations: 0.5571 MB / 343.9 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.884e-05/0.2915, allocations: 21 kB / 344 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.445e-05/0.2915, allocations: 63.56 kB / 344 MB, free: 13.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=126): time 2.585e-06/0.2915, allocations: 0 / 344 MB, free: 13.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=126): time 0.006451/0.298, allocations: 1.847 MB / 345.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.298, allocations: 76.41 kB / 346 MB, free: 11.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0344/0.3324, allocations: 17.43 MB / 363.4 MB, free: 10.64 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004212/0.3328, allocations: 61.7 kB / 363.4 MB, free: 10.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005139/0.338, allocations: 3.038 MB / 366.5 MB, free: 7.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006108/0.3386, allocations: 475.9 kB / 366.9 MB, free: 7.051 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000453/0.339, allocations: 315.3 kB / 367.3 MB, free: 6.738 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.748e-05/0.3391, allocations: 309.1 kB / 367.6 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000329/0.3394, allocations: 167.5 kB / 367.7 MB, free: 6.273 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/0.3407, allocations: 1.831 MB / 369.5 MB, free: 3.922 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008897/0.3415, allocations: 0.9615 MB / 370.5 MB, free: 2.824 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.828e-06/0.3416, allocations: 4 kB / 370.5 MB, free: 2.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005259/0.3468, allocations: 1.59 MB / 372.1 MB, free: 1.316 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.3468, allocations: 12 kB / 372.1 MB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.3469, allocations: 16 kB / 372.1 MB, free: 1.289 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005049/0.3474, allocations: 179.4 kB / 372.3 MB, free: 1.113 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009161/0.3483, allocations: 399.9 kB / 372.7 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/0.3506, allocations: 2.549 MB / 375.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005068/0.3557, allocations: 238.7 kB / 375.5 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002112/0.3559, allocations: 56 kB / 375.5 MB, free: 13.85 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.004968/0.3609, allocations: 252.7 kB / 375.8 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0038/0.3647, allocations: 0.7491 MB / 376.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005844/0.3705, allocations: 1.824 MB / 378.4 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.3705, allocations: 15.98 kB / 378.4 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.3705, allocations: 0 / 378.4 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.719e-06/0.3705, allocations: 3.984 kB / 378.4 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01856/0.3891, allocations: 6.745 MB / 385.1 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.3891, allocations: 4 kB / 385.1 MB, free: 4.242 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009561/0.3901, allocations: 262.3 kB / 385.4 MB, free: 3.996 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006317/0.3964, allocations: 2.355 MB / 387.7 MB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000461/0.3968, allocations: 135.6 kB / 387.9 MB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.462e-05/0.3969, allocations: 28 kB / 387.9 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002256/0.3992, allocations: 2.232 MB / 390.1 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3992, allocations: 0 / 390.1 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005237/0.4044, allocations: 1.739 MB / 391.9 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002883/0.4073, allocations: 43.98 kB / 391.9 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002742/0.4101, allocations: 167.7 kB / 392.1 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000439/0.4105, allocations: 180.6 kB / 392.2 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.4106, allocations: 35.98 kB / 392.3 MB, free: 13.01 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.02255/0.4331, allocations: 9.734 MB / 402 MB, free: 3.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4331, allocations: 0 / 402 MB, free: 3.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008642/0.4418, allocations: 1.853 MB / 403.9 MB, free: 1.484 MB / 362.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.001443/0.4432, allocations: 0.5404 MB / 404.4 MB, free: 1.199 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.4449, allocations: 1.03 MB / 405.4 MB, free: 196 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002061/0.4451, allocations: 169.6 kB / 405.6 MB, free: 28 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007522/0.4458, allocations: 0.6149 MB / 406.2 MB, free: 15.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01656/0.4624, allocations: 2.278 MB / 408.5 MB, free: 13.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2707/0.7331, allocations: 26.7 MB / 435.2 MB, free: 106.3 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007889/0.741, allocations: 3.264 MB / 438.5 MB, free: 105.9 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.006276/0.7473, allocations: 1.373 MB / 439.8 MB, free: 105.8 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00775/0.755, allocations: 1.778 MB / 441.6 MB, free: 105.7 MB / 378.8 MB Notification: Performance of SimCode: time 1.783e-06/0.755, allocations: 0 / 441.6 MB, free: 105.7 MB / 378.8 MB Notification: Performance of Templates: time 0.3217/1.077, allocations: 172.7 MB / 0.5999 GB, free: 96.51 MB / 394.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 6.000291652046144]