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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 221.5 MB / 230.3 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008552/0.0008551, allocations: 96.42 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.787e-05/1.789e-05, allocations: 7.984 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08622/0.08625, allocations: 50.42 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2977/0.384, allocations: 86.34 MB / 473.8 MB, free: 8.523 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.3843, allocations: 85.89 kB / 473.9 MB, free: 8.441 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05934/0.4436, allocations: 26.52 MB / 0.4887 GB, free: 13.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4437, allocations: 4 kB / 0.4887 GB, free: 13.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.871e-05/0.4438, allocations: 27.94 kB / 0.4887 GB, free: 13.75 MB / 378.7 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.001882/0.4457, allocations: 1.473 MB / 0.4901 GB, free: 12.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.4457, allocations: 12.03 kB / 0.4902 GB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002414/0.446, allocations: 189.7 kB / 0.4903 GB, free: 12.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002138/0.4481, allocations: 1.469 MB / 0.4918 GB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.865e-05/0.4482, allocations: 55 kB / 0.4918 GB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.918e-05/0.4483, allocations: 31.91 kB / 0.4919 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004488/0.4487, allocations: 262.6 kB / 0.4921 GB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007159/0.4494, allocations: 485.6 kB / 0.4926 GB, free: 9.648 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.4495, allocations: 0 / 0.4926 GB, free: 9.648 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.238e-05/0.4495, allocations: 4 kB / 0.4926 GB, free: 9.645 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.4495, allocations: 12 kB / 0.4926 GB, free: 9.633 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004084/0.4536, allocations: 3.204 MB / 0.4957 GB, free: 6.324 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006069/0.4542, allocations: 291.2 kB / 0.496 GB, free: 6.035 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002694/0.4545, allocations: 142.7 kB / 0.4961 GB, free: 5.895 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.4546, allocations: 4.188 kB / 0.4961 GB, free: 5.891 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.4546, allocations: 34.75 kB / 0.4962 GB, free: 5.848 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.314e-06/0.4546, allocations: 3.938 kB / 0.4962 GB, free: 5.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005755/0.4552, allocations: 331.3 kB / 0.4965 GB, free: 5.512 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.758e-05/0.4553, allocations: 213.6 kB / 0.4967 GB, free: 5.254 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003095/0.4584, allocations: 2.499 MB / 0.4991 GB, free: 2.707 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.4584, allocations: 25.7 kB / 0.4991 GB, free: 2.676 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006378/0.4591, allocations: 0.7889 MB / 0.4999 GB, free: 1.883 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.387e-05/0.4591, allocations: 66.92 kB / 0.5 GB, free: 1.816 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.439e-05/0.4592, allocations: 0 / 0.5 GB, free: 1.816 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.916e-05/0.4593, allocations: 322 kB / 0.5003 GB, free: 1.496 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.4594, allocations: 81.11 kB / 0.5004 GB, free: 1.414 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.4596, allocations: 232.7 kB / 0.5006 GB, free: 1.117 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001622/0.4598, allocations: 103 kB / 0.5007 GB, free: 1.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.4598, allocations: 7.938 kB / 0.5007 GB, free: 1.012 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000893/0.4607, allocations: 496.2 kB / 0.5012 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.4608, allocations: 8 kB / 0.5012 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.4608, allocations: 4 kB / 0.5012 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002162/0.461, allocations: 52.77 kB / 0.5012 GB, free: 460 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.4613, allocations: 76.09 kB / 0.5013 GB, free: 384 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.4626, allocations: 1.497 MB / 0.5028 GB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004438/0.4631, allocations: 59.75 kB / 0.5028 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.937e-05/0.4631, allocations: 19.94 kB / 0.5028 GB, free: 14.68 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cccvCharger.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001676/0.4633, allocations: 112.9 kB / 0.5029 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002218/0.4635, allocations: 158 kB / 0.5031 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005785/0.4641, allocations: 384.5 kB / 0.5035 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.4641, allocations: 0 / 0.5035 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.4641, allocations: 4 kB / 0.5035 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4641, allocations: 4 kB / 0.5035 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001949/0.4661, allocations: 1.595 MB / 0.505 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4661, allocations: 0 / 0.505 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002452/0.4663, allocations: 52 kB / 0.5051 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001026/0.4665, allocations: 40.73 kB / 0.5051 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.4665, allocations: 4 kB / 0.5051 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.4675, allocations: 1.431 MB / 0.5065 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4676, allocations: 3.938 kB / 0.5065 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000601/0.4682, allocations: 0.5629 MB / 0.5071 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005797/0.4688, allocations: 0.496 MB / 0.5076 GB, free: 9.582 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.4689, allocations: 8 kB / 0.5076 GB, free: 9.574 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004451/0.4693, allocations: 51.95 kB / 0.5076 GB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.147e-05/0.4694, allocations: 35.91 kB / 0.5077 GB, free: 9.488 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.4695, allocations: 7.984 kB / 0.5077 GB, free: 9.48 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002318/0.4718, allocations: 1.902 MB / 0.5095 GB, free: 7.555 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4718, allocations: 4 kB / 0.5095 GB, free: 7.551 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006823/0.4725, allocations: 211.5 kB / 0.5097 GB, free: 7.344 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007229/0.4732, allocations: 355.8 kB / 0.5101 GB, free: 7.062 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005848/0.4738, allocations: 336.9 kB / 0.5104 GB, free: 6.727 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.4738, allocations: 4 kB / 0.5104 GB, free: 6.723 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003052/0.4741, allocations: 221.9 kB / 0.5106 GB, free: 6.496 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007499/0.4749, allocations: 182.5 kB / 0.5108 GB, free: 6.312 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004065/0.479, allocations: 2.506 MB / 0.5132 GB, free: 3.766 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009606/0.4799, allocations: 1.39 MB / 0.5146 GB, free: 2.344 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004615/0.4804, allocations: 254.2 kB / 0.5148 GB, free: 2.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002075/0.4806, allocations: 83.42 kB / 0.5149 GB, free: 2.008 MB / 394.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4806, allocations: 3.938 kB / 0.5149 GB, free: 2.004 MB / 394.7 MB Notification: Performance of Templates: time 0.02192/0.5026, allocations: 11.78 MB / 0.5264 GB, free: 6.262 MB / 410.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches