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.0007294/0.0007294, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001191/0.00192, 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.0006225/0.0006225, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009/0.001523, 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.9018/0.9018, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1681/1.07, allocations: 52.49 MB / 238.5 MB, free: 7.629 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.473e-06/1.473e-06, allocations: 0 / 239.7 MB, free: 6.383 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.055e-05/2.202e-05, allocations: 2.312 kB / 239.7 MB, free: 6.379 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.00985/0.009872, allocations: 9.573 MB / 249.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00553/0.0154, allocations: 3.487 MB / 252.8 MB, free: 9.301 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005744/0.01598, allocations: 31.81 kB / 252.8 MB, free: 9.27 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002241/0.01822, allocations: 1.187 MB / 254 MB, free: 8.082 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001132/0.01935, allocations: 0.6791 MB / 254.7 MB, free: 7.402 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007381/0.02009, allocations: 0.4902 MB / 255.2 MB, free: 6.914 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004772/0.02486, allocations: 7.203 MB / 262.4 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002456/0.02731, allocations: 2.193 MB / 264.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004793/0.03211, allocations: 4.951 MB / 269.5 MB, free: 8.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002733/0.03484, allocations: 2.956 MB / 272.5 MB, free: 5.379 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007971/0.03564, allocations: 0.6602 MB / 273.1 MB, free: 4.719 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008923/0.03653, allocations: 0.707 MB / 273.8 MB, free: 4.012 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002573/0.0391, allocations: 5.487 MB / 279.3 MB, free: 14.51 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003821/0.04292, allocations: 3.018 MB / 282.4 MB, free: 11.48 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01155/0.05448, allocations: 13.79 MB / 296.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.85e-05/0.0545, allocations: 4 kB / 296.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.0545, allocations: 0 / 296.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0005975/0.0551, allocations: 0 / 296.1 MB, free: 13.66 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: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.02652/0.08162, allocations: 17.46 MB / 313.6 MB, free: 12.06 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.08166, allocations: 8.031 kB / 313.6 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003204/0.08487, allocations: 1.117 MB / 314.7 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01497/0.09983, allocations: 7.043 MB / 321.8 MB, free: 3.824 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003235/0.1002, allocations: 341.9 kB / 322.1 MB, free: 3.477 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004665/0.1006, allocations: 352 kB / 322.4 MB, free: 3.133 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.131/0.2317, allocations: 4.511 MB / 327 MB, free: 58.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.784e-05/0.2317, allocations: 2.375 kB / 327 MB, free: 58.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003082/0.232, allocations: 144.7 kB / 327.1 MB, free: 58.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.089e-05/0.2321, allocations: 80.53 kB / 327.2 MB, free: 58.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001868/0.234, allocations: 0.7422 MB / 327.9 MB, free: 58.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02454/0.2585, allocations: 14.67 MB / 342.6 MB, free: 51.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.2597, allocations: 1.016 MB / 343.6 MB, free: 51.46 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005773/0.2603, allocations: 0.5442 MB / 344.1 MB, free: 51.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.65e-05/0.2603, allocations: 26.42 kB / 344.2 MB, free: 51.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/0.2604, allocations: 67.77 kB / 344.2 MB, free: 51.26 MB / 314.7 MB Notification: Performance of pre-optimization done (n=126): time 4.428e-06/0.2604, allocations: 4 kB / 344.2 MB, free: 51.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=126): time 0.00555/0.2659, allocations: 1.833 MB / 346.1 MB, free: 50.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.367e-05/0.266, allocations: 78.02 kB / 346.2 MB, free: 50.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02401/0.29, allocations: 17.43 MB / 363.6 MB, free: 35.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000426/0.2904, allocations: 61.7 kB / 363.6 MB, free: 35.07 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002882/0.2933, allocations: 3.04 MB / 366.7 MB, free: 32.51 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005478/0.2938, allocations: 473.8 kB / 367.1 MB, free: 32.05 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003802/0.2942, allocations: 319.3 kB / 367.5 MB, free: 31.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.162e-05/0.2942, allocations: 301.1 kB / 367.8 MB, free: 31.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.2945, allocations: 163.9 kB / 367.9 MB, free: 31.28 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000637/0.2952, allocations: 1.839 MB / 369.8 MB, free: 28.92 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007875/0.2959, allocations: 1.005 MB / 370.8 MB, free: 27.78 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.296, allocations: 4 kB / 370.8 MB, free: 27.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003632/0.2996, allocations: 1.589 MB / 372.4 MB, free: 26.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.2996, allocations: 16.22 kB / 372.4 MB, free: 26.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.2996, allocations: 12 kB / 372.4 MB, free: 26.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004473/0.3001, allocations: 185.2 kB / 372.6 MB, free: 26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000808/0.3009, allocations: 395.4 kB / 372.9 MB, free: 25.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.3027, allocations: 2.549 MB / 375.5 MB, free: 22.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004131/0.3068, allocations: 246.7 kB / 375.7 MB, free: 22.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001574/0.307, allocations: 59.94 kB / 375.8 MB, free: 22.68 MB / 314.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.004329/0.3113, allocations: 258.7 kB / 376 MB, free: 22.42 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003052/0.3143, allocations: 0.7491 MB / 376.8 MB, free: 21.67 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004662/0.319, allocations: 1.806 MB / 378.6 MB, free: 19.84 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.319, allocations: 12 kB / 378.6 MB, free: 19.83 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.319, allocations: 0 / 378.6 MB, free: 19.83 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.319, allocations: 7.969 kB / 378.6 MB, free: 19.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0177/0.3367, allocations: 6.753 MB / 385.4 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.3367, allocations: 0 / 385.4 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007189/0.3374, allocations: 263.7 kB / 385.6 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005019/0.3425, allocations: 2.35 MB / 388 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004493/0.3429, allocations: 134.8 kB / 388.1 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.343, allocations: 39.92 kB / 388.2 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001577/0.3446, allocations: 2.224 MB / 390.4 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3446, allocations: 3.938 kB / 390.4 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004589/0.3492, allocations: 1.74 MB / 392.1 MB, free: 6.184 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003312/0.3525, allocations: 47.92 kB / 392.2 MB, free: 6.137 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003846/0.3563, allocations: 171.6 kB / 392.3 MB, free: 5.973 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003802/0.3567, allocations: 172.6 kB / 392.5 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.775e-05/0.3568, allocations: 28 kB / 392.5 MB, free: 5.777 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.02399/0.3808, allocations: 9.738 MB / 402.3 MB, free: 12.1 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3808, allocations: 0 / 402.3 MB, free: 12.1 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.009869/0.3907, allocations: 1.857 MB / 404.1 MB, free: 10.24 MB / 330.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.00142/0.3921, allocations: 0.5311 MB / 404.7 MB, free: 9.945 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001971/0.3941, allocations: 1.056 MB / 405.7 MB, free: 8.914 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002366/0.3943, allocations: 166.8 kB / 405.9 MB, free: 8.754 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008648/0.3952, allocations: 0.6873 MB / 406.6 MB, free: 8.062 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01992/0.4151, allocations: 12.45 MB / 419 MB, free: 9.996 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05779/0.4729, allocations: 26.7 MB / 445.7 MB, free: 15.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007982/0.4809, allocations: 3.259 MB / 449 MB, free: 11.86 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.006662/0.4875, allocations: 1.379 MB / 450.4 MB, free: 10.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008067/0.4956, allocations: 1.788 MB / 452.1 MB, free: 8.668 MB / 378.7 MB Notification: Performance of SimCode: time 2.174e-06/0.4956, allocations: 0 / 452.1 MB, free: 8.668 MB / 378.7 MB Notification: Performance of Templates: time 0.5243/1.02, allocations: 173.2 MB / 0.6107 GB, free: 124 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.703787968493998]