Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.007082/0.007082, allocations: 107.8 kB / 21.98 MB, free: 5.223 MB / 14.72 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.001865/0.001865, allocations: 216.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.455/1.455, allocations: 230.6 MB / 259 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 68.08 kB / 379.8 MB, free: 2.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2689, allocations: 53.37 MB / 433.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007785/0.2767, allocations: 5.598 MB / 438.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003558/0.2803, allocations: 1.917 MB / 440.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005223/0.2808, allocations: 11.94 kB / 440.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.282, allocations: 0.5252 MB / 441.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009264/0.283, allocations: 393.9 kB / 441.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008858/0.2838, allocations: 373.1 kB / 442 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00114/0.285, allocations: 0.8965 MB / 442.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004393/0.2854, allocations: 229.4 kB / 443.1 MB, free: 13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004785/0.2859, allocations: 378.7 kB / 443.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006208/0.2865, allocations: 470.3 kB / 443.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.2866, allocations: 79.94 kB / 444 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002277/0.2869, allocations: 124 kB / 444.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005217/0.2874, allocations: 0.5883 MB / 444.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006777/0.2881, allocations: 0.7415 MB / 445.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002314/0.2904, allocations: 2.128 MB / 447.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.2904, allocations: 4 kB / 447.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2904, allocations: 0 / 447.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.786e-05/0.2904, allocations: 0 / 447.6 MB, free: 8.496 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003541/0.294, allocations: 2.073 MB / 449.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.294, allocations: 8.031 kB / 449.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003292/0.2943, allocations: 195.7 kB / 449.8 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002494/0.2968, allocations: 1.459 MB / 451.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.2969, allocations: 66.69 kB / 451.4 MB, free: 4.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-05/0.297, allocations: 51.94 kB / 451.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.2982, allocations: 0.5815 MB / 452 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.2982, allocations: 0 / 452 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.174e-05/0.2982, allocations: 20 kB / 452 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.2982, allocations: 15.98 kB / 452 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007295/0.299, allocations: 351.7 kB / 452.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004966/0.3039, allocations: 3.195 MB / 455.6 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.305, allocations: 350.6 kB / 455.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004631/0.3055, allocations: 176.7 kB / 456.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.41e-05/0.3055, allocations: 4 kB / 456.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.128e-05/0.3056, allocations: 38.55 kB / 456.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.683e-06/0.3056, allocations: 4 kB / 456.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001927/0.3075, allocations: 0.6294 MB / 456.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/0.3076, allocations: 209.6 kB / 457 MB, free: 14.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004196/0.3118, allocations: 2.904 MB / 459.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.846e-05/0.3119, allocations: 29.7 kB / 459.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007965/0.3127, allocations: 0.79 MB / 460.7 MB, free: 11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.47e-05/0.3128, allocations: 83.27 kB / 460.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.3129, allocations: 69.97 kB / 460.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.313, allocations: 318 kB / 461.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000333/0.3134, allocations: 120.6 kB / 461.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005048/0.3139, allocations: 296.7 kB / 461.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007192/0.3146, allocations: 355.1 kB / 461.9 MB, free: 9.648 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.3146, allocations: 4 kB / 461.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00134/0.316, allocations: 0.5748 MB / 462.5 MB, free: 9.062 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.316, allocations: 4 kB / 462.5 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.316, allocations: 4 kB / 462.5 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002916/0.3163, allocations: 56.81 kB / 462.5 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002986/0.3166, allocations: 76.09 kB / 462.6 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001833/0.3184, allocations: 1.617 MB / 464.2 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005489/0.319, allocations: 63.7 kB / 464.3 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/0.319, allocations: 16.09 kB / 464.3 MB, free: 7.113 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0008259/0.3198, allocations: 0.5856 MB / 464.9 MB, free: 6.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000261/0.3201, allocations: 178.8 kB / 465.1 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.3213, allocations: 0.5065 MB / 465.6 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.3213, allocations: 8 kB / 465.6 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.3213, allocations: 0 / 465.6 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3213, allocations: 0 / 465.6 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002905/0.3242, allocations: 1.661 MB / 467.2 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3242, allocations: 7.969 kB / 467.3 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000219/0.3244, allocations: 47.91 kB / 467.3 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001558/0.3246, allocations: 44.83 kB / 467.3 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.3246, allocations: 11.98 kB / 467.4 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001563/0.3262, allocations: 1.57 MB / 468.9 MB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3262, allocations: 0 / 468.9 MB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.3277, allocations: 0.7227 MB / 469.6 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000681/0.3284, allocations: 310.8 kB / 470 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.3285, allocations: 8 kB / 470 MB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004243/0.329, allocations: 43.95 kB / 470 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.3291, allocations: 35.94 kB / 470 MB, free: 1.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.3291, allocations: 8 kB / 470 MB, free: 1.156 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003132/0.3322, allocations: 2.071 MB / 472.1 MB, free: 15.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3322, allocations: 0 / 472.1 MB, free: 15.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00087/0.3331, allocations: 207.6 kB / 472.3 MB, free: 14.86 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.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 (18): * Single equations (assignments): 17 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001292/0.3344, allocations: 367.4 kB / 472.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.3355, allocations: 430.7 kB / 473.1 MB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3355, allocations: 0 / 473.1 MB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005294/0.336, allocations: 259.1 kB / 473.4 MB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.3371, allocations: 218.5 kB / 473.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005374/0.3425, allocations: 3.163 MB / 476.7 MB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001146/0.3436, allocations: 1.354 MB / 478.1 MB, free: 9.109 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003148/0.344, allocations: 87.42 kB / 478.2 MB, free: 9.023 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.344, allocations: 0 / 478.2 MB, free: 9.023 MB / 382.1 MB Notification: Performance of Templates: time 0.03838/0.3823, allocations: 24.98 MB / 0.4914 GB, free: 68 kB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.1462260580156]