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.0007415/0.0007415, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00113/0.001871, allocations: 457.8 kB / 10.45 MB, free: 244 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.0007027/0.0007027, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009648/0.001668, allocations: 475.6 kB / 11.82 MB, free: 2.348 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.047/1.047, allocations: 177.5 MB / 190 MB, free: 4.785 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09143/1.139, allocations: 53.87 MB / 243.9 MB, free: 14.84 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 1.523e-06/1.523e-06, allocations: 0 / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.58e-05/1.732e-05, allocations: 2.312 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.007044/0.007061, allocations: 9.634 MB / 254.8 MB, free: 3.895 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003575/0.01064, allocations: 3.644 MB / 258.5 MB, free: 244 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003189/0.01095, allocations: 31.81 kB / 258.5 MB, free: 212 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.0123, allocations: 1.19 MB / 259.7 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006687/0.01297, allocations: 0.7147 MB / 260.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005235/0.0135, allocations: 499.1 kB / 260.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004298/0.01779, allocations: 7.18 MB / 268.1 MB, free: 6.602 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001778/0.01957, allocations: 2.19 MB / 270.3 MB, free: 4.305 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1308/0.1503, allocations: 4.989 MB / 275.3 MB, free: 7.562 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005055/0.1554, allocations: 2.953 MB / 278.2 MB, free: 7.562 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002534/0.1579, allocations: 0.666 MB / 278.9 MB, free: 7.562 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002176/0.1601, allocations: 0.7132 MB / 279.6 MB, free: 7.562 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003582/0.1637, allocations: 5.492 MB / 285.1 MB, free: 7.535 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004644/0.1683, allocations: 3.015 MB / 288.1 MB, free: 7.102 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008242/0.1766, allocations: 13.83 MB / 301.9 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.526e-05/0.1766, allocations: 0 / 301.9 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1766, allocations: 0 / 301.9 MB, free: 15.86 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003268/0.1769, allocations: 0 / 301.9 MB, free: 15.86 MB / 282.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.02429/0.2012, allocations: 17.5 MB / 319.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.2012, allocations: 9.656 kB / 319.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001699/0.2029, allocations: 1.124 MB / 320.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008861/0.2118, allocations: 7.057 MB / 327.6 MB, free: 7.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003239/0.2121, allocations: 355.2 kB / 328 MB, free: 6.961 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003967/0.2125, allocations: 350.7 kB / 328.3 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004414/0.2169, allocations: 4.515 MB / 332.8 MB, free: 1.664 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.105e-05/0.217, allocations: 0 / 332.8 MB, free: 1.664 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002357/0.2172, allocations: 147.8 kB / 333 MB, free: 1.523 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.96e-05/0.2172, allocations: 80 kB / 333 MB, free: 1.445 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.2184, allocations: 0.7396 MB / 333.8 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02461/0.243, allocations: 14.66 MB / 348.4 MB, free: 2.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.2447, allocations: 1.01 MB / 349.4 MB, free: 1.277 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008519/0.2455, allocations: 0.5557 MB / 350 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.82e-05/0.2456, allocations: 24.98 kB / 350 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.961e-05/0.2457, allocations: 68.25 kB / 350.1 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of pre-optimization done (n=126): time 3.236e-06/0.2457, allocations: 0 / 350.1 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of matching and sorting (n=126): time 0.005004/0.2507, allocations: 1.843 MB / 351.9 MB, free: 14.82 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00025/0.2509, allocations: 79.55 kB / 352 MB, free: 14.73 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0251/0.276, allocations: 17.7 MB / 369.7 MB, free: 13.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002082/0.2762, allocations: 57.7 kB / 369.8 MB, free: 13.64 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002598/0.2788, allocations: 3.054 MB / 372.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003852/0.2792, allocations: 468 kB / 373.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005018/0.2797, allocations: 323.2 kB / 373.6 MB, free: 9.793 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.689e-05/0.2798, allocations: 301.1 kB / 373.9 MB, free: 9.496 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003951/0.2802, allocations: 163.9 kB / 374 MB, free: 9.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.2815, allocations: 1.846 MB / 375.9 MB, free: 6.977 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.2827, allocations: 1 MB / 376.9 MB, free: 5.832 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.2827, allocations: 7.938 kB / 376.9 MB, free: 5.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.002905/0.2856, allocations: 1.596 MB / 378.5 MB, free: 4.316 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.2856, allocations: 12 kB / 378.5 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/0.2856, allocations: 12 kB / 378.5 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005129/0.2861, allocations: 183.4 kB / 378.7 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009462/0.2871, allocations: 399.9 kB / 379.1 MB, free: 3.746 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002268/0.2894, allocations: 2.546 MB / 381.6 MB, free: 1.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/0.291, allocations: 238.7 kB / 381.9 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.319e-05/0.2911, allocations: 52 kB / 381.9 MB, free: 0.8477 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.001929/0.293, allocations: 264 kB / 382.2 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009693/0.294, allocations: 0.749 MB / 382.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002189/0.2962, allocations: 1.821 MB / 384.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.2962, allocations: 12 kB / 384.8 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.2962, allocations: 2.625 kB / 384.8 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.2962, allocations: 7.984 kB / 384.8 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008531/0.3047, allocations: 6.767 MB / 391.5 MB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3047, allocations: 4 kB / 391.5 MB, free: 7.211 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006746/0.3054, allocations: 254.2 kB / 391.8 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002566/0.308, allocations: 2.357 MB / 394.1 MB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003016/0.3083, allocations: 136.7 kB / 394.3 MB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.37e-05/0.3083, allocations: 35.98 kB / 394.3 MB, free: 4.434 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001942/0.3103, allocations: 2.228 MB / 396.5 MB, free: 2.133 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3103, allocations: 0 / 396.5 MB, free: 2.133 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00209/0.3124, allocations: 1.744 MB / 398.3 MB, free: 392 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000759/0.3131, allocations: 39.98 kB / 398.3 MB, free: 352 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/0.3144, allocations: 159.9 kB / 398.5 MB, free: 192 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002805/0.3147, allocations: 180.7 kB / 398.7 MB, free: 12 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.876e-05/0.3147, allocations: 32.02 kB / 398.7 MB, free: 15.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0102/0.3249, allocations: 9.775 MB / 408.5 MB, free: 6.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3249, allocations: 4 kB / 408.5 MB, free: 6.266 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00408/0.329, allocations: 1.849 MB / 410.3 MB, free: 4.414 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.001428/0.3304, allocations: 0.5176 MB / 410.8 MB, free: 4.145 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.3319, allocations: 1.053 MB / 411.9 MB, free: 3.105 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001216/0.3321, allocations: 177.6 kB / 412.1 MB, free: 2.938 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007578/0.3328, allocations: 0.6811 MB / 412.7 MB, free: 2.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1388/0.4716, allocations: 12.46 MB / 425.2 MB, free: 95.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0547/0.5263, allocations: 26.59 MB / 451.8 MB, free: 86.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003325/0.5297, allocations: 3.265 MB / 455.1 MB, free: 84.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004921/0.5346, allocations: 1.379 MB / 456.4 MB, free: 83.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004094/0.5387, allocations: 1.785 MB / 458.2 MB, free: 81.62 MB / 378.7 MB Notification: Performance of SimCode: time 2.765e-06/0.5387, allocations: 0 / 458.2 MB, free: 81.62 MB / 378.7 MB Notification: Performance of Templates: time 0.4371/0.9758, allocations: 173.2 MB / 0.6166 GB, free: 89.97 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.975342596881092]