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_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001755/0.001755, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001934/0.001934, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.417/1.417, allocations: 227.7 MB / 247.9 MB, free: 10.16 MB / 206.1 MB 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.001971/0.001971, allocations: 67.89 kB / 359.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2529, allocations: 50.56 MB / 410.2 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008854/0.2618, allocations: 6.067 MB / 416.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004536/0.2663, allocations: 2.306 MB / 418.6 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006331/0.2669, allocations: 15.94 kB / 418.6 MB, free: 9.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001575/0.2685, allocations: 0.6341 MB / 419.2 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00102/0.2695, allocations: 449.7 kB / 419.7 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.2706, allocations: 407.8 kB / 420.1 MB, free: 7.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001874/0.2725, allocations: 1.31 MB / 421.4 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006264/0.2731, allocations: 333.9 kB / 421.7 MB, free: 6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006983/0.2738, allocations: 0.4944 MB / 422.2 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007518/0.2746, allocations: 0.5838 MB / 422.8 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001801/0.2747, allocations: 120 kB / 422.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000342/0.2751, allocations: 176 kB / 423.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005567/0.2756, allocations: 0.6583 MB / 423.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008373/0.2765, allocations: 0.8894 MB / 424.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003049/0.2795, allocations: 2.638 MB / 427.3 MB, free: 436 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.2795, allocations: 0 / 427.3 MB, free: 436 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2795, allocations: 0 / 427.3 MB, free: 436 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.986e-05/0.2796, allocations: 0 / 427.3 MB, free: 436 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005463/0.2851, allocations: 2.441 MB / 429.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.036e-05/0.2851, allocations: 8.031 kB / 429.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000471/0.2856, allocations: 231.5 kB / 429.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003237/0.2888, allocations: 1.697 MB / 431.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001749/0.289, allocations: 104.7 kB / 431.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.2891, allocations: 63.95 kB / 431.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001802/0.2909, allocations: 0.8297 MB / 432.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.291, allocations: 3.984 kB / 432.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.048e-05/0.291, allocations: 28 kB / 432.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.168e-05/0.2911, allocations: 16 kB / 432.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.2922, allocations: 0.5477 MB / 433.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007712/0.2999, allocations: 3.99 MB / 437.2 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.3013, allocations: 0.5011 MB / 437.7 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007987/0.3021, allocations: 345.2 kB / 438 MB, free: 5.301 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.3022, allocations: 4.281 kB / 438 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.581e-05/0.3022, allocations: 42.83 kB / 438.1 MB, free: 5.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.745e-06/0.3022, allocations: 0 / 438.1 MB, free: 5.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002763/0.305, allocations: 0.9499 MB / 439 MB, free: 4.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/0.3051, allocations: 265 kB / 439.3 MB, free: 3.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004739/0.3099, allocations: 3.164 MB / 442.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.31, allocations: 37.64 kB / 442.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008956/0.3109, allocations: 0.8576 MB / 443.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.311, allocations: 130.9 kB / 443.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001783/0.3112, allocations: 94.2 kB / 443.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3113, allocations: 322 kB / 443.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000506/0.3118, allocations: 213 kB / 444.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006594/0.3125, allocations: 390 kB / 444.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.3135, allocations: 0.5282 MB / 445 MB, free: 14.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.3135, allocations: 4 kB / 445 MB, free: 14.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001941/0.3155, allocations: 0.7819 MB / 445.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.3155, allocations: 4.031 kB / 445.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.3155, allocations: 8.078 kB / 445.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00032/0.3158, allocations: 76.69 kB / 445.9 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004843/0.3163, allocations: 111.9 kB / 446 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002/0.3183, allocations: 1.798 MB / 447.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008203/0.3191, allocations: 75.59 kB / 447.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.906e-05/0.3192, allocations: 20 kB / 447.9 MB, free: 11.03 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (51): * Single equations (assignments): 50 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001083/0.3202, allocations: 0.6634 MB / 448.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003725/0.3206, allocations: 194.7 kB / 448.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003811/0.321, allocations: 214.6 kB / 448.9 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.321, allocations: 4 kB / 448.9 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.321, allocations: 0 / 448.9 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.321, allocations: 3.984 kB / 448.9 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004031/0.325, allocations: 2.163 MB / 451.1 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.325, allocations: 0 / 451.1 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004229/0.3255, allocations: 79.88 kB / 451.2 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002435/0.3257, allocations: 72.94 kB / 451.3 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.14e-05/0.3258, allocations: 15.94 kB / 451.3 MB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001764/0.3275, allocations: 1.74 MB / 453 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3275, allocations: 4.094 kB / 453 MB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002156/0.3297, allocations: 0.9801 MB / 454 MB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009292/0.3306, allocations: 447.7 kB / 454.4 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001631/0.3308, allocations: 19.98 kB / 454.5 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005437/0.3313, allocations: 51.95 kB / 454.5 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3314, allocations: 35.95 kB / 454.5 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.797e-05/0.3315, allocations: 11.98 kB / 454.6 MB, free: 4.078 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003476/0.3349, allocations: 2.255 MB / 456.8 MB, free: 1.805 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3349, allocations: 0 / 456.8 MB, free: 1.805 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001092/0.336, allocations: 263.5 kB / 457.1 MB, free: 1.547 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 0.001805/0.3378, allocations: 471 kB / 457.5 MB, free: 1.266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.3393, allocations: 0.6002 MB / 458.1 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.3393, allocations: 0 / 458.1 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006864/0.34, allocations: 347.1 kB / 458.5 MB, free: 308 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001426/0.3415, allocations: 283.1 kB / 458.7 MB, free: 20 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006782/0.3482, allocations: 3.643 MB / 462.4 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001374/0.3496, allocations: 1.497 MB / 463.9 MB, free: 10.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008392/0.3505, allocations: 303.1 kB / 464.2 MB, free: 10.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002861/0.3507, allocations: 95.44 kB / 464.3 MB, free: 10.41 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3507, allocations: 0 / 464.3 MB, free: 10.41 MB / 382.1 MB Notification: Performance of Templates: time 0.03551/0.3863, allocations: 17.44 MB / 481.7 MB, free: 9.133 MB / 398.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches