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) 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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,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=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001299/0.001299, allocations: 116.5 kB / 18.45 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001382, allocations: 211.8 kB / 19.41 MB, free: 3.664 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.392/1.392, allocations: 227.7 MB / 247.9 MB, free: 10.17 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.001902/0.001902, allocations: 59.89 kB / 359.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.261, allocations: 50.54 MB / 410.2 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007431/0.2685, allocations: 5.559 MB / 415.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003152/0.2716, allocations: 1.886 MB / 417.6 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003143/0.2719, allocations: 15.94 kB / 417.7 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001041/0.273, allocations: 0.5174 MB / 418.2 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007105/0.2737, allocations: 390 kB / 418.5 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007923/0.2745, allocations: 374.6 kB / 418.9 MB, free: 8.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001014/0.2755, allocations: 0.8886 MB / 419.8 MB, free: 7.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004124/0.2759, allocations: 232.9 kB / 420 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004169/0.2763, allocations: 370.7 kB / 420.4 MB, free: 7.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005191/0.2768, allocations: 442.4 kB / 420.8 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001/0.2769, allocations: 80 kB / 420.9 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002121/0.2772, allocations: 124 kB / 421 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004832/0.2776, allocations: 0.5843 MB / 421.6 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006744/0.2783, allocations: 0.7415 MB / 422.4 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002213/0.2805, allocations: 2.132 MB / 424.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.2805, allocations: 4 kB / 424.5 MB, free: 3.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2805, allocations: 0 / 424.5 MB, free: 3.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.206e-05/0.2806, allocations: 0 / 424.5 MB, free: 3.059 MB / 334.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.003677/0.2842, allocations: 2.153 MB / 426.6 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.2843, allocations: 11.97 kB / 426.7 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/0.2846, allocations: 195.7 kB / 426.8 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002748/0.2873, allocations: 1.519 MB / 428.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.2875, allocations: 62.7 kB / 428.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.2876, allocations: 55.92 kB / 428.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.2889, allocations: 0.5815 MB / 429.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.2889, allocations: 0 / 429.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.363e-05/0.289, allocations: 23.98 kB / 429.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.289, allocations: 12 kB / 429.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007504/0.2897, allocations: 343.7 kB / 429.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005216/0.2949, allocations: 3.251 MB / 432.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.2962, allocations: 366 kB / 433 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005167/0.2967, allocations: 174 kB / 433.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.2967, allocations: 8 kB / 433.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/0.2967, allocations: 34.56 kB / 433.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.114e-06/0.2967, allocations: 0 / 433.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002057/0.2988, allocations: 0.7049 MB / 434 MB, free: 9.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/0.2989, allocations: 213.6 kB / 434.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004301/0.3032, allocations: 2.904 MB / 437.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.433e-05/0.3033, allocations: 33.7 kB / 437.1 MB, free: 6.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008066/0.3041, allocations: 0.7822 MB / 437.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.993e-05/0.3042, allocations: 79.36 kB / 438 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.3043, allocations: 65.98 kB / 438 MB, free: 5.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3045, allocations: 322 kB / 438.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003705/0.3049, allocations: 124.6 kB / 438.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004911/0.3053, allocations: 288.7 kB / 438.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007527/0.3061, allocations: 362.2 kB / 439.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.3061, allocations: 8 kB / 439.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001486/0.3076, allocations: 0.5705 MB / 439.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.3076, allocations: 7.125 kB / 439.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3076, allocations: 4 kB / 439.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003056/0.3079, allocations: 65.08 kB / 439.7 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.3082, allocations: 71.89 kB / 439.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002023/0.3103, allocations: 1.72 MB / 441.5 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006051/0.3109, allocations: 59.8 kB / 441.6 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.3109, allocations: 16 kB / 441.6 MB, free: 1.23 MB / 350.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.0009286/0.3118, allocations: 0.5756 MB / 442.2 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002625/0.3121, allocations: 182.8 kB / 442.4 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001304/0.3134, allocations: 0.5103 MB / 442.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.3134, allocations: 4 kB / 442.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-06/0.3134, allocations: 0 / 442.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3134, allocations: 3.938 kB / 442.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003051/0.3165, allocations: 1.69 MB / 444.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3165, allocations: 0 / 444.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002409/0.3167, allocations: 48.03 kB / 444.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001773/0.3169, allocations: 56.84 kB / 444.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/0.3169, allocations: 8 kB / 444.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001674/0.3186, allocations: 1.662 MB / 446.3 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3186, allocations: 0 / 446.3 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001521/0.3201, allocations: 0.7159 MB / 447.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007014/0.3208, allocations: 395.9 kB / 447.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/0.3209, allocations: 8 kB / 447.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004193/0.3213, allocations: 39.95 kB / 447.5 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.738e-05/0.3214, allocations: 31.95 kB / 447.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.3214, allocations: 4 kB / 447.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002836/0.3243, allocations: 2.079 MB / 449.6 MB, free: 8.926 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3243, allocations: 0 / 449.6 MB, free: 8.926 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007365/0.325, allocations: 203.7 kB / 449.8 MB, free: 8.727 MB / 366.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.001262/0.3263, allocations: 363.5 kB / 450.2 MB, free: 8.492 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.3273, allocations: 425.8 kB / 450.6 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3273, allocations: 0 / 450.6 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005588/0.3279, allocations: 267.2 kB / 450.8 MB, free: 7.793 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009785/0.3289, allocations: 232.3 kB / 451.1 MB, free: 7.566 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004945/0.3338, allocations: 3.052 MB / 454.1 MB, free: 4.473 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001149/0.3349, allocations: 1.355 MB / 455.5 MB, free: 3.086 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005377/0.3355, allocations: 249.7 kB / 455.7 MB, free: 2.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/0.3357, allocations: 79.44 kB / 455.8 MB, free: 2.762 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3357, allocations: 0 / 455.8 MB, free: 2.762 MB / 366.1 MB Notification: Performance of Templates: time 0.02893/0.3646, allocations: 15.79 MB / 471.6 MB, free: 3.066 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) 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) Reference file matches