Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001978/0.001978, allocations: 200.7 kB / 18.1 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 226.5 MB / 245.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009166/0.0009166, allocations: 98.42 kB / 297.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003978/0.000398, allocations: 8 kB / 358.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2465, allocations: 51.3 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09787/0.3444, allocations: 88.27 MB / 497.6 MB, free: 3.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.3447, allocations: 79.97 kB / 497.7 MB, free: 3.152 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2493/0.594, allocations: 27.7 MB / 0.5131 GB, free: 89.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.5941, allocations: 0 / 0.5131 GB, free: 89.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001895/0.5943, allocations: 22.03 kB / 0.5131 GB, free: 89.57 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.0033/0.5976, allocations: 1.911 MB / 0.515 GB, free: 88.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.5976, allocations: 7.875 kB / 0.515 GB, free: 88.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004192/0.5981, allocations: 187.8 kB / 0.5152 GB, free: 88.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0026/0.6007, allocations: 1.579 MB / 0.5167 GB, free: 87.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.6008, allocations: 66.83 kB / 0.5168 GB, free: 87.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.959e-05/0.6009, allocations: 46.41 kB / 0.5168 GB, free: 87.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.6019, allocations: 0.6122 MB / 0.5174 GB, free: 87.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.6019, allocations: 3.688 kB / 0.5174 GB, free: 87.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.355e-05/0.602, allocations: 20.59 kB / 0.5174 GB, free: 87.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.602, allocations: 15.72 kB / 0.5175 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000664/0.6027, allocations: 351.2 kB / 0.5178 GB, free: 87.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0041/0.6068, allocations: 3.323 MB / 0.521 GB, free: 85.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009531/0.6078, allocations: 422.7 kB / 0.5214 GB, free: 85.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003907/0.6082, allocations: 202.2 kB / 0.5216 GB, free: 85.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.784e-05/0.6082, allocations: 2.906 kB / 0.5216 GB, free: 85.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.6082, allocations: 37.47 kB / 0.5217 GB, free: 85.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.685e-06/0.6083, allocations: 0 / 0.5217 GB, free: 85.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.001496/0.6098, allocations: 0.6974 MB / 0.5224 GB, free: 85.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.6098, allocations: 215.8 kB / 0.5226 GB, free: 85.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003296/0.6131, allocations: 2.876 MB / 0.5254 GB, free: 84.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.71e-05/0.6132, allocations: 25.7 kB / 0.5254 GB, free: 84.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004694/0.6137, allocations: 0.7791 MB / 0.5262 GB, free: 83.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.273e-05/0.6137, allocations: 78.97 kB / 0.5262 GB, free: 83.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.638e-05/0.6137, allocations: 5.031 kB / 0.5262 GB, free: 83.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.463e-05/0.6138, allocations: 324.4 kB / 0.5265 GB, free: 83.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.6141, allocations: 130.6 kB / 0.5267 GB, free: 83.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003332/0.6145, allocations: 294.2 kB / 0.527 GB, free: 82.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005563/0.615, allocations: 381.3 kB / 0.5273 GB, free: 82.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.615, allocations: 7.469 kB / 0.5273 GB, free: 82.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001219/0.6163, allocations: 0.6243 MB / 0.5279 GB, free: 82.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.6163, allocations: 6.344 kB / 0.5279 GB, free: 82.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.6163, allocations: 4 kB / 0.5279 GB, free: 82.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002547/0.6166, allocations: 71.72 kB / 0.528 GB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002737/0.6169, allocations: 77.91 kB / 0.5281 GB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.618, allocations: 1.583 MB / 0.5296 GB, free: 80.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005019/0.6186, allocations: 71.28 kB / 0.5297 GB, free: 80.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.6186, allocations: 12 kB / 0.5297 GB, free: 80.37 MB / 378.7 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 (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.0007437/0.6193, allocations: 0.5854 MB / 0.5303 GB, free: 79.83 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000196/0.6195, allocations: 165.9 kB / 0.5304 GB, free: 79.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008392/0.6204, allocations: 0.4949 MB / 0.5309 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.6204, allocations: 0 / 0.5309 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-06/0.6204, allocations: 0 / 0.5309 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.6204, allocations: 3.656 kB / 0.5309 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002089/0.6225, allocations: 1.787 MB / 0.5327 GB, free: 77.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.6225, allocations: 0 / 0.5327 GB, free: 77.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000216/0.6228, allocations: 55.47 kB / 0.5327 GB, free: 77.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001499/0.6229, allocations: 52.06 kB / 0.5328 GB, free: 77.67 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.623, allocations: 7.938 kB / 0.5328 GB, free: 77.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000972/0.6239, allocations: 1.527 MB / 0.5343 GB, free: 76.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.6239, allocations: 0 / 0.5343 GB, free: 76.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.6251, allocations: 0.7037 MB / 0.535 GB, free: 75.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005694/0.6256, allocations: 0.4975 MB / 0.5354 GB, free: 74.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.6258, allocations: 11.7 kB / 0.5355 GB, free: 74.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004208/0.6262, allocations: 58.78 kB / 0.5355 GB, free: 74.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.302e-05/0.6263, allocations: 33.39 kB / 0.5355 GB, free: 74.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.6263, allocations: 4 kB / 0.5356 GB, free: 74.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002325/0.6287, allocations: 2.058 MB / 0.5376 GB, free: 72.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6287, allocations: 0 / 0.5376 GB, free: 72.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008018/0.6295, allocations: 243.6 kB / 0.5378 GB, free: 72.5 MB / 378.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 () * 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 (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.0008086/0.6303, allocations: 416.4 kB / 0.5382 GB, free: 72.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008869/0.6312, allocations: 467.1 kB / 0.5386 GB, free: 71.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.6312, allocations: 0 / 0.5386 GB, free: 71.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004265/0.6316, allocations: 279.2 kB / 0.5389 GB, free: 71.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.6327, allocations: 212.6 kB / 0.5391 GB, free: 71.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004565/0.6372, allocations: 3.462 MB / 0.5425 GB, free: 67.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007119/0.638, allocations: 1.355 MB / 0.5438 GB, free: 66.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005495/0.6385, allocations: 261.6 kB / 0.5441 GB, free: 66.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.6387, allocations: 83.44 kB / 0.5441 GB, free: 66.08 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.6388, allocations: 0 / 0.5441 GB, free: 66.08 MB / 378.7 MB Notification: Performance of Templates: time 0.02431/0.6631, allocations: 16.7 MB / 0.5604 GB, free: 49.46 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches