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.001679/0.001679, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.002066/0.002066, allocations: 192 kB / 18.63 MB, free: 4.375 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.431/1.431, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009877/0.0009878, allocations: 43.45 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1111, allocations: 49.45 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007741/0.1189, allocations: 5.494 MB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002658/0.1216, allocations: 1.715 MB / 358.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002978/0.1219, allocations: 11.94 kB / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009999/0.1229, allocations: 0.5174 MB / 359.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006079/0.1236, allocations: 358.1 kB / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007627/0.1244, allocations: 358.5 kB / 359.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000903/0.1253, allocations: 0.8925 MB / 360.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000485/0.1258, allocations: 344.8 kB / 361.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000396/0.1262, allocations: 358.8 kB / 361.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004881/0.1267, allocations: 434.4 kB / 361.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.1268, allocations: 80 kB / 362 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002016/0.127, allocations: 124 kB / 362.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004173/0.1274, allocations: 0.5882 MB / 362.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005957/0.128, allocations: 0.7338 MB / 363.5 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001715/0.1297, allocations: 2.122 MB / 365.6 MB, free: 5.531 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1298, allocations: 0 / 365.6 MB, free: 5.531 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1298, allocations: 0 / 365.6 MB, free: 5.531 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.35e-05/0.1298, allocations: 0 / 365.6 MB, free: 5.531 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.004747/0.1346, allocations: 2.075 MB / 367.7 MB, free: 3.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.1346, allocations: 15.89 kB / 367.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000287/0.1349, allocations: 186.6 kB / 367.9 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00259/0.1375, allocations: 1.494 MB / 369.4 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.1376, allocations: 66.69 kB / 369.4 MB, free: 1.586 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.136e-05/0.1377, allocations: 48 kB / 369.5 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.1388, allocations: 0.5815 MB / 370 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.1388, allocations: 0 / 370 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.701e-05/0.1389, allocations: 23.94 kB / 370.1 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/0.1389, allocations: 12 kB / 370.1 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006713/0.1396, allocations: 347.8 kB / 370.4 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1857/0.3253, allocations: 3.234 MB / 373.7 MB, free: 23.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001654/0.327, allocations: 373.9 kB / 374 MB, free: 23.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007165/0.3278, allocations: 186.5 kB / 374.2 MB, free: 23.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.805e-05/0.3278, allocations: 2.25 kB / 374.2 MB, free: 23.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.3279, allocations: 38.23 kB / 374.2 MB, free: 23.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 3.155e-06/0.3279, allocations: 1.219 kB / 374.2 MB, free: 23.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002781/0.3307, allocations: 0.7 MB / 374.9 MB, free: 23.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.561e-05/0.3308, allocations: 210.6 kB / 375.1 MB, free: 22.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007496/0.3383, allocations: 2.884 MB / 378 MB, free: 22.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.789e-05/0.3384, allocations: 33.5 kB / 378.1 MB, free: 22 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.3395, allocations: 0.7874 MB / 378.9 MB, free: 21.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.3396, allocations: 73.44 kB / 378.9 MB, free: 21.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.3398, allocations: 71.03 kB / 379 MB, free: 21.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.552e-05/0.3399, allocations: 324.3 kB / 379.3 MB, free: 21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004989/0.3404, allocations: 121.3 kB / 379.4 MB, free: 20.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005522/0.341, allocations: 296.2 kB / 379.7 MB, free: 20.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008809/0.3419, allocations: 351.8 kB / 380.1 MB, free: 20.51 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.3419, allocations: 1.125 kB / 380.1 MB, free: 20.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001991/0.3439, allocations: 0.5633 MB / 380.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.3439, allocations: 10.81 kB / 380.6 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.344, allocations: 4.281 kB / 380.6 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003623/0.3443, allocations: 57.33 kB / 380.7 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004147/0.3448, allocations: 74.77 kB / 380.8 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.3466, allocations: 1.727 MB / 382.5 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009822/0.3476, allocations: 61.7 kB / 382.6 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-05/0.3477, allocations: 16.67 kB / 382.6 MB, free: 18.57 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.00115/0.3488, allocations: 0.5771 MB / 383.1 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004808/0.3493, allocations: 164.2 kB / 383.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00183/0.3512, allocations: 0.5079 MB / 383.8 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.3512, allocations: 6.188 kB / 383.8 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3512, allocations: 1.188 kB / 383.8 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3512, allocations: 0.9844 kB / 383.8 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004535/0.3558, allocations: 1.691 MB / 385.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.3558, allocations: 0 / 385.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.3562, allocations: 51.39 kB / 385.6 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002413/0.3564, allocations: 44.47 kB / 385.6 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.299e-05/0.3565, allocations: 6.797 kB / 385.6 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001584/0.3581, allocations: 1.676 MB / 387.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3581, allocations: 4.031 kB / 387.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001644/0.3597, allocations: 0.7128 MB / 388 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009259/0.3607, allocations: 379.5 kB / 388.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003231/0.361, allocations: 3.094 kB / 388.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006029/0.3616, allocations: 47.22 kB / 388.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.3617, allocations: 43.3 kB / 388.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-05/0.3618, allocations: 4.406 kB / 388.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003851/0.3656, allocations: 2.068 MB / 390.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.3656, allocations: 0 / 390.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001065/0.3667, allocations: 202.1 kB / 390.7 MB, free: 14.22 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.0007961/0.3675, allocations: 357 kB / 391.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.3686, allocations: 435.8 kB / 391.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.3686, allocations: 0.875 kB / 391.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004856/0.3691, allocations: 273.5 kB / 391.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.3705, allocations: 222.9 kB / 392 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005009/0.3755, allocations: 3.06 MB / 395.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008904/0.3764, allocations: 1.361 MB / 396.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005999/0.377, allocations: 237.7 kB / 396.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.3773, allocations: 75.44 kB / 396.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of SimCode: time 1.343e-06/0.3773, allocations: 8 kB / 396.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of Templates: time 0.02594/0.4033, allocations: 15.54 MB / 412.3 MB, free: 11.12 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 -s cvode -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