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.001959/0.001959, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002238/0.002239, allocations: 205.8 kB / 18.92 MB, free: 4.465 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.394/1.394, allocations: 227.7 MB / 247.4 MB, free: 10.54 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.001948/0.001948, allocations: 59.33 kB / 307.4 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09012/0.09208, allocations: 50.54 MB / 357.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007114/0.09922, allocations: 5.531 MB / 363.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003042/0.1023, allocations: 1.843 MB / 365.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003364/0.1027, allocations: 15.88 kB / 365.3 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.1037, allocations: 0.4983 MB / 365.8 MB, free: 6.344 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007181/0.1044, allocations: 342.5 kB / 366.1 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007276/0.1052, allocations: 338.6 kB / 366.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009933/0.1062, allocations: 0.9003 MB / 367.4 MB, free: 4.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000515/0.1067, allocations: 336.8 kB / 367.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004316/0.1072, allocations: 366.7 kB / 368.1 MB, free: 4.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004818/0.1077, allocations: 446.4 kB / 368.5 MB, free: 3.652 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.1078, allocations: 80 kB / 368.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000209/0.108, allocations: 116 kB / 368.7 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005489/0.1085, allocations: 0.596 MB / 369.3 MB, free: 2.863 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006882/0.1092, allocations: 0.7455 MB / 370 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001711/0.111, allocations: 1.785 MB / 371.8 MB, free: 332 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.111, allocations: 0 / 371.8 MB, free: 332 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.111, allocations: 0 / 371.8 MB, free: 332 kB / 302.1 MB Notification: Performance of Transformations before backend: time 2.399e-05/0.111, allocations: 0 / 371.8 MB, free: 332 kB / 302.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.1428/0.2538, allocations: 2.083 MB / 373.9 MB, free: 19.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.2538, allocations: 12.64 kB / 373.9 MB, free: 19.39 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002793/0.2541, allocations: 186.5 kB / 374.1 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002047/0.2562, allocations: 1.494 MB / 375.6 MB, free: 18.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002243/0.2564, allocations: 91.48 kB / 375.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.992e-05/0.2565, allocations: 50.12 kB / 375.7 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009789/0.2575, allocations: 0.5797 MB / 376.3 MB, free: 18.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.2575, allocations: 5.312 kB / 376.3 MB, free: 18.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.644e-05/0.2576, allocations: 23.97 kB / 376.3 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.2576, allocations: 12.38 kB / 376.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006455/0.2582, allocations: 345.4 kB / 376.7 MB, free: 18.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00418/0.2624, allocations: 3.25 MB / 379.9 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.2635, allocations: 385.3 kB / 380.3 MB, free: 16.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004354/0.2639, allocations: 180.6 kB / 380.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.264, allocations: 11.73 kB / 380.5 MB, free: 16.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.264, allocations: 37.84 kB / 380.5 MB, free: 16.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.984e-06/0.264, allocations: 0 / 380.5 MB, free: 16.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001869/0.2659, allocations: 0.6935 MB / 381.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.266, allocations: 218.8 kB / 381.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003633/0.2696, allocations: 2.903 MB / 384.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.977e-05/0.2697, allocations: 32.02 kB / 384.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005596/0.2702, allocations: 0.7836 MB / 385.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.839e-05/0.2703, allocations: 74.62 kB / 385.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.2704, allocations: 70.55 kB / 385.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.881e-05/0.2705, allocations: 321.1 kB / 385.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003275/0.2708, allocations: 126.9 kB / 385.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003851/0.2712, allocations: 283 kB / 386 MB, free: 13.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006205/0.2718, allocations: 367.5 kB / 386.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.2718, allocations: 1.188 kB / 386.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001234/0.2731, allocations: 0.5592 MB / 386.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.2731, allocations: 7.438 kB / 386.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.2731, allocations: 4.234 kB / 387 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002848/0.2734, allocations: 65.62 kB / 387 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000285/0.2737, allocations: 71.55 kB / 387.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/0.275, allocations: 1.728 MB / 388.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006023/0.2756, allocations: 62.27 kB / 388.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.747e-05/0.2757, allocations: 16.86 kB / 388.9 MB, free: 11.04 MB / 302.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.0007047/0.2764, allocations: 0.5702 MB / 389.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002427/0.2766, allocations: 169.4 kB / 389.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001137/0.2778, allocations: 0.5132 MB / 390.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.2778, allocations: 3.156 kB / 390.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.2778, allocations: 0.5156 kB / 390.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.2778, allocations: 1.406 kB / 390.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002512/0.2803, allocations: 1.704 MB / 391.8 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.2803, allocations: 0 / 391.8 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002176/0.2806, allocations: 49.47 kB / 391.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001518/0.2807, allocations: 52.28 kB / 391.9 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.2807, allocations: 2.062 kB / 392 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001016/0.2818, allocations: 1.671 MB / 393.6 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2818, allocations: 3.938 kB / 393.6 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.2831, allocations: 0.7065 MB / 394.3 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004816/0.2836, allocations: 384.1 kB / 394.7 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.2837, allocations: 6.75 kB / 394.7 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004215/0.2842, allocations: 49.45 kB / 394.8 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.363e-05/0.2843, allocations: 32 kB / 394.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.2843, allocations: 9.484 kB / 394.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002389/0.2867, allocations: 2.071 MB / 396.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2867, allocations: 1.031 kB / 396.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007887/0.2875, allocations: 202.5 kB / 397.1 MB, free: 6.156 MB / 302.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.001221/0.2887, allocations: 366.9 kB / 397.4 MB, free: 5.996 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009484/0.2897, allocations: 447.2 kB / 397.9 MB, free: 5.738 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.2897, allocations: 11.84 kB / 397.9 MB, free: 5.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004262/0.2901, allocations: 261.1 kB / 398.1 MB, free: 5.555 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.2912, allocations: 233.8 kB / 398.4 MB, free: 5.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004214/0.2954, allocations: 3.558 MB / 401.9 MB, free: 2.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007973/0.2962, allocations: 1.359 MB / 403.3 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003199/0.2966, allocations: 83.44 kB / 403.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2966, allocations: 0 / 403.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of Templates: time 0.0376/0.3342, allocations: 24.76 MB / 428.1 MB, free: 7.832 MB / 334.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 -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