Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 101 kB / 17.59 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 191.3 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 50.5 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09114/0.09229, allocations: 49.45 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007173/0.09949, allocations: 5.491 MB / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.1024, allocations: 1.715 MB / 357.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005563/0.103, allocations: 11.94 kB / 357.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.1042, allocations: 0.5213 MB / 358.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009682/0.1052, allocations: 346.1 kB / 358.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.1063, allocations: 363 kB / 359.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001301/0.1076, allocations: 0.9042 MB / 360.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006848/0.1083, allocations: 324.8 kB / 360.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008117/0.1091, allocations: 362.8 kB / 360.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008498/0.11, allocations: 442.4 kB / 361.2 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002066/0.1102, allocations: 76 kB / 361.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003567/0.1106, allocations: 124 kB / 361.4 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005131/0.1111, allocations: 0.5843 MB / 361.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008569/0.112, allocations: 0.7415 MB / 362.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001911/0.1139, allocations: 2.087 MB / 364.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1139, allocations: 0 / 364.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1139, allocations: 0 / 364.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.601e-05/0.114, allocations: 0 / 364.8 MB, free: 6.316 MB / 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.004452/0.1184, allocations: 2.083 MB / 366.9 MB, free: 4.172 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.1185, allocations: 15.89 kB / 366.9 MB, free: 4.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004608/0.119, allocations: 182.6 kB / 367.1 MB, free: 3.977 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002682/0.1217, allocations: 1.482 MB / 368.5 MB, free: 2.449 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002538/0.1219, allocations: 94.66 kB / 368.6 MB, free: 2.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.1221, allocations: 48 kB / 368.7 MB, free: 2.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.1232, allocations: 0.5815 MB / 369.3 MB, free: 1.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.1233, allocations: 7.984 kB / 369.3 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.632e-05/0.1233, allocations: 20 kB / 369.3 MB, free: 1.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.1233, allocations: 15.98 kB / 369.3 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007608/0.1241, allocations: 339.8 kB / 369.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1568/0.2809, allocations: 3.249 MB / 372.9 MB, free: 23.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.2821, allocations: 380.9 kB / 373.3 MB, free: 23.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004598/0.2826, allocations: 184.9 kB / 373.4 MB, free: 23.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.2826, allocations: 2.094 kB / 373.4 MB, free: 23.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.2827, allocations: 38.23 kB / 373.5 MB, free: 23.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.084e-06/0.2827, allocations: 2.688 kB / 373.5 MB, free: 23.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002047/0.2847, allocations: 0.6892 MB / 374.2 MB, free: 23.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.994e-05/0.2848, allocations: 211.9 kB / 374.4 MB, free: 22.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00393/0.2888, allocations: 2.894 MB / 377.3 MB, free: 21.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.83e-05/0.2888, allocations: 30.95 kB / 377.3 MB, free: 21.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006322/0.2895, allocations: 0.7906 MB / 378.1 MB, free: 21.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.135e-05/0.2896, allocations: 69.77 kB / 378.2 MB, free: 21.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.2897, allocations: 69.84 kB / 378.2 MB, free: 21.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.209e-05/0.2898, allocations: 321.4 kB / 378.5 MB, free: 20.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/0.2902, allocations: 123.2 kB / 378.7 MB, free: 20.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000435/0.2906, allocations: 296.9 kB / 378.9 MB, free: 20.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007434/0.2913, allocations: 360.3 kB / 379.3 MB, free: 20.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.2914, allocations: 4.953 kB / 379.3 MB, free: 20.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001539/0.2929, allocations: 0.559 MB / 379.9 MB, free: 20.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.2929, allocations: 7.578 kB / 379.9 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.293, allocations: 3.5 kB / 379.9 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002997/0.2933, allocations: 56.45 kB / 379.9 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003106/0.2936, allocations: 77.88 kB / 380 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001421/0.295, allocations: 1.727 MB / 381.7 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006969/0.2957, allocations: 64.08 kB / 381.8 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.2958, allocations: 20.5 kB / 381.8 MB, free: 18.53 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.0008408/0.2966, allocations: 0.5733 MB / 382.4 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002579/0.2969, allocations: 164.9 kB / 382.5 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.2982, allocations: 0.5168 MB / 383.1 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.2982, allocations: 2.156 kB / 383.1 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.2982, allocations: 1.828 kB / 383.1 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.2982, allocations: 0.7969 kB / 383.1 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00325/0.3015, allocations: 1.689 MB / 384.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.3015, allocations: 0 / 384.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002486/0.3018, allocations: 42.8 kB / 384.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000218/0.302, allocations: 53.8 kB / 384.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/0.302, allocations: 2.531 kB / 384.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001244/0.3033, allocations: 1.675 MB / 386.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3033, allocations: 1.656 kB / 386.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.3049, allocations: 0.7116 MB / 387.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006831/0.3056, allocations: 385.9 kB / 387.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/0.3058, allocations: 14.88 kB / 387.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004515/0.3063, allocations: 42.97 kB / 387.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.3064, allocations: 30.81 kB / 387.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/0.3064, allocations: 5.875 kB / 387.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003301/0.3097, allocations: 2.064 MB / 389.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.11e-07/0.3097, allocations: 4 kB / 389.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000954/0.3107, allocations: 200.8 kB / 390 MB, free: 14.19 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.0008552/0.3116, allocations: 362.8 kB / 390.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.3127, allocations: 449 kB / 390.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.3128, allocations: 0 / 390.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00047/0.3132, allocations: 270.6 kB / 391 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.3145, allocations: 229.5 kB / 391.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005147/0.3196, allocations: 3.22 MB / 394.5 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007187/0.3204, allocations: 1.349 MB / 395.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002905/0.3207, allocations: 79.53 kB / 395.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3207, allocations: 11.55 kB / 395.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of Templates: time 0.03295/0.3536, allocations: 24.65 MB / 420.6 MB, free: 2.602 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches