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.001346/0.001346, allocations: 121.7 kB / 17.83 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 205.2 kB / 18.79 MB, free: 4.102 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.556/1.556, allocations: 230.4 MB / 250 MB, free: 8.988 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.003101/0.003101, allocations: 67.83 kB / 367.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.257, allocations: 53.31 MB / 420.6 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007204/0.2642, allocations: 5.557 MB / 426.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00354/0.2677, allocations: 1.89 MB / 428.1 MB, free: 1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005286/0.2682, allocations: 15.94 kB / 428.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.2695, allocations: 0.5213 MB / 428.6 MB, free: 472 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008577/0.2704, allocations: 397.9 kB / 429 MB, free: 72 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008425/0.2712, allocations: 373.3 kB / 429.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.2723, allocations: 0.8925 MB / 430.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004593/0.2728, allocations: 228.9 kB / 430.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005098/0.2733, allocations: 370.7 kB / 430.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006206/0.2739, allocations: 466.3 kB / 431.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.274, allocations: 80 kB / 431.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002179/0.2742, allocations: 120 kB / 431.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000462/0.2747, allocations: 0.5882 MB / 432.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006329/0.2753, allocations: 0.7376 MB / 432.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002297/0.2776, allocations: 2.132 MB / 435 MB, free: 10.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2776, allocations: 4 kB / 435 MB, free: 10.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2776, allocations: 0 / 435 MB, free: 10.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.887e-05/0.2776, allocations: 0 / 435 MB, free: 10.09 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.003566/0.2812, allocations: 2.153 MB / 437.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.2813, allocations: 12.03 kB / 437.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002939/0.2815, allocations: 195.7 kB / 437.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002357/0.2839, allocations: 1.515 MB / 438.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.284, allocations: 70.64 kB / 438.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.6e-05/0.2841, allocations: 48 kB / 439 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.2853, allocations: 0.5815 MB / 439.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.2853, allocations: 0 / 439.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.016e-05/0.2853, allocations: 24 kB / 439.6 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.2853, allocations: 12 kB / 439.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007692/0.2861, allocations: 351.7 kB / 439.9 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004658/0.2908, allocations: 3.247 MB / 443.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.2919, allocations: 365.4 kB / 443.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005005/0.2924, allocations: 176.7 kB / 443.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/0.2924, allocations: 0 / 443.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.2925, allocations: 38.5 kB / 443.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.153e-06/0.2925, allocations: 0 / 443.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001978/0.2944, allocations: 0.7016 MB / 444.4 MB, free: 312 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001448/0.2946, allocations: 213.6 kB / 444.6 MB, free: 48 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003884/0.2985, allocations: 2.908 MB / 447.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.491e-05/0.2985, allocations: 29.7 kB / 447.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007979/0.2993, allocations: 0.7822 MB / 448.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.099e-05/0.2994, allocations: 75.38 kB / 448.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.2995, allocations: 69.98 kB / 448.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.2997, allocations: 318 kB / 448.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003492/0.3, allocations: 124.6 kB / 448.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004946/0.3005, allocations: 292.8 kB / 449.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007472/0.3013, allocations: 362.9 kB / 449.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3013, allocations: 4 kB / 449.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001245/0.3025, allocations: 0.5634 MB / 450.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.3026, allocations: 8 kB / 450.2 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.3026, allocations: 4 kB / 450.2 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002775/0.3028, allocations: 61.08 kB / 450.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002993/0.3031, allocations: 71.89 kB / 450.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001908/0.305, allocations: 1.732 MB / 452 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004701/0.3055, allocations: 59.7 kB / 452.1 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.722e-05/0.3055, allocations: 19.94 kB / 452.1 MB, free: 8.254 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.0008082/0.3063, allocations: 0.5764 MB / 452.7 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002267/0.3066, allocations: 178.8 kB / 452.8 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001276/0.3079, allocations: 0.5142 MB / 453.4 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3079, allocations: 0 / 453.4 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.3079, allocations: 0 / 453.4 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.3079, allocations: 4 kB / 453.4 MB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002793/0.3107, allocations: 1.69 MB / 455.1 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.3107, allocations: 0 / 455.1 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.3109, allocations: 47.91 kB / 455.1 MB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001757/0.3111, allocations: 48.86 kB / 455.1 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.3111, allocations: 4 kB / 455.2 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001721/0.3128, allocations: 1.67 MB / 456.8 MB, free: 3.293 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3128, allocations: 3.984 kB / 456.8 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.3144, allocations: 0.717 MB / 457.5 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006211/0.3151, allocations: 395.9 kB / 457.9 MB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.3152, allocations: 8 kB / 457.9 MB, free: 2.133 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004348/0.3156, allocations: 43.95 kB / 458 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.213e-05/0.3157, allocations: 31.95 kB / 458 MB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.3157, allocations: 8 kB / 458 MB, free: 2.051 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002905/0.3186, allocations: 2.075 MB / 460.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3186, allocations: 0 / 460.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007749/0.3194, allocations: 203.7 kB / 460.3 MB, free: 15.75 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.001302/0.3207, allocations: 358.9 kB / 460.6 MB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.3218, allocations: 429.8 kB / 461.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.3218, allocations: 3.938 kB / 461.1 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005584/0.3224, allocations: 263.2 kB / 461.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.3234, allocations: 231.8 kB / 461.6 MB, free: 14.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005114/0.3286, allocations: 3.064 MB / 464.6 MB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.3297, allocations: 1.359 MB / 466 MB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000585/0.3303, allocations: 237.7 kB / 466.2 MB, free: 9.871 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002188/0.3305, allocations: 75.44 kB / 466.3 MB, free: 9.797 MB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3305, allocations: 0 / 466.3 MB, free: 9.797 MB / 382.1 MB Notification: Performance of Templates: time 0.0324/0.3629, allocations: 15.84 MB / 482.1 MB, free: 10.04 MB / 398.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/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