Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008363/0.0008363, allocations: 88.28 kB / 21.43 MB, free: 3.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003573/0.003573, allocations: 153.6 kB / 24.7 MB, free: 9.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8568/0.8568, allocations: 177 MB / 204.9 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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) 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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.299e-05/3.517e-05, allocations: 7.266 kB / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005029/0.005064, allocations: 5.415 MB / 331.2 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003095/0.008159, allocations: 2.193 MB / 333.4 MB, free: 7.738 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004103/0.008569, allocations: 19.88 kB / 333.4 MB, free: 7.719 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001124/0.009693, allocations: 0.6104 MB / 334 MB, free: 7.105 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007408/0.01043, allocations: 473.3 kB / 334.5 MB, free: 6.641 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006579/0.01109, allocations: 417.5 kB / 334.9 MB, free: 6.234 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001022/0.01211, allocations: 1.34 MB / 336.2 MB, free: 4.895 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004173/0.01253, allocations: 298.2 kB / 336.5 MB, free: 4.594 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006197/0.01315, allocations: 0.7213 MB / 337.2 MB, free: 3.871 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004567/0.01361, allocations: 0.5105 MB / 337.7 MB, free: 3.359 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.01371, allocations: 116 kB / 337.8 MB, free: 3.246 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002421/0.01395, allocations: 175.9 kB / 338 MB, free: 3.074 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003124/0.01426, allocations: 0.6662 MB / 338.7 MB, free: 2.406 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007123/0.01498, allocations: 0.5336 MB / 339.2 MB, free: 1.871 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001814/0.01679, allocations: 2.586 MB / 341.8 MB, free: 15.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.01679, allocations: 4 kB / 341.8 MB, free: 15.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.0168, allocations: 0 / 341.8 MB, free: 15.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.975e-05/0.01683, allocations: 0 / 341.8 MB, free: 15.27 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002818/0.01964, allocations: 2.343 MB / 344.1 MB, free: 12.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.01969, allocations: 12.03 kB / 344.2 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.01991, allocations: 223.5 kB / 344.4 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001644/0.02155, allocations: 1.631 MB / 346 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.02169, allocations: 182.4 kB / 346.2 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.051e-05/0.02176, allocations: 64.33 kB / 346.3 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.02311, allocations: 1.189 MB / 347.4 MB, free: 9.363 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.02313, allocations: 4 kB / 347.4 MB, free: 9.359 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.731e-05/0.02318, allocations: 28 kB / 347.5 MB, free: 9.332 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.02319, allocations: 16 kB / 347.5 MB, free: 9.316 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006724/0.02386, allocations: 0.5399 MB / 348 MB, free: 8.777 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003935/0.0278, allocations: 3.495 MB / 351.5 MB, free: 5.188 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007905/0.02859, allocations: 0.4956 MB / 352 MB, free: 4.68 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004662/0.02905, allocations: 346.6 kB / 352.4 MB, free: 4.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.02908, allocations: 8.219 kB / 352.4 MB, free: 4.332 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.67e-05/0.02912, allocations: 42.78 kB / 352.4 MB, free: 4.281 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.895e-06/0.02912, allocations: 0 / 352.4 MB, free: 4.281 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001484/0.03061, allocations: 0.8691 MB / 353.3 MB, free: 3.402 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003722/0.03098, allocations: 261 kB / 353.5 MB, free: 3.086 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002652/0.03363, allocations: 3.112 MB / 356.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.677e-05/0.03367, allocations: 37.7 kB / 356.7 MB, free: 15.89 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005048/0.03417, allocations: 0.8649 MB / 357.5 MB, free: 15.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.564e-05/0.03426, allocations: 127 kB / 357.7 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.03437, allocations: 94.14 kB / 357.8 MB, free: 14.79 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.605e-05/0.03445, allocations: 329.9 kB / 358.1 MB, free: 14.46 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002669/0.03472, allocations: 204.9 kB / 358.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004023/0.03512, allocations: 0.5965 MB / 358.9 MB, free: 13.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005424/0.03567, allocations: 0.5206 MB / 359.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.03567, allocations: 0 / 359.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001007/0.03668, allocations: 0.7699 MB / 360.2 MB, free: 12.2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.0367, allocations: 8 kB / 360.2 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.03671, allocations: 4.375 kB / 360.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002802/0.03699, allocations: 72.81 kB / 360.3 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.03726, allocations: 119.7 kB / 360.4 MB, free: 11.99 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001729/0.03899, allocations: 1.656 MB / 362 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005119/0.0395, allocations: 75.58 kB / 362.1 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.429e-05/0.03952, allocations: 16 kB / 362.1 MB, free: 10.14 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (51): * Single equations (assignments): 50 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0008966/0.04042, allocations: 0.6577 MB / 362.8 MB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001957/0.04062, allocations: 186.8 kB / 363 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002094/0.04083, allocations: 214.1 kB / 363.2 MB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.04083, allocations: 4 kB / 363.2 MB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.04084, allocations: 0 / 363.2 MB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.04084, allocations: 3.984 kB / 363.2 MB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.04301, allocations: 1.836 MB / 365 MB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.04302, allocations: 0 / 365 MB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002153/0.04323, allocations: 83.88 kB / 365.1 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001562/0.04339, allocations: 64.86 kB / 365.2 MB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.809e-05/0.04341, allocations: 8 kB / 365.2 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.04456, allocations: 1.606 MB / 366.8 MB, free: 5.328 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.04456, allocations: 4.094 kB / 366.8 MB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.04599, allocations: 0.983 MB / 367.8 MB, free: 4.312 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004642/0.04646, allocations: 370.7 kB / 368.1 MB, free: 3.949 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.234e-05/0.04655, allocations: 15.94 kB / 368.1 MB, free: 3.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002843/0.04684, allocations: 51.94 kB / 368.2 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.996e-05/0.04693, allocations: 39.88 kB / 368.2 MB, free: 3.844 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.04694, allocations: 12 kB / 368.2 MB, free: 3.832 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002067/0.04901, allocations: 2.226 MB / 370.5 MB, free: 1.586 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04901, allocations: 0 / 370.5 MB, free: 1.586 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007083/0.04972, allocations: 259.5 kB / 370.7 MB, free: 1.332 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 0.0008778/0.0506, allocations: 499 kB / 371.2 MB, free: 1.016 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009183/0.05151, allocations: 0.5822 MB / 371.8 MB, free: 432 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.05152, allocations: 0 / 371.8 MB, free: 432 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003704/0.05189, allocations: 355.3 kB / 372.1 MB, free: 64 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007957/0.05269, allocations: 264.9 kB / 372.4 MB, free: 15.8 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004252/0.05694, allocations: 3.625 MB / 376 MB, free: 12.13 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006513/0.05759, allocations: 0.9003 MB / 376.9 MB, free: 11.2 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002828/0.05787, allocations: 96.44 kB / 377 MB, free: 11.1 MB / 346.7 MB Notification: Performance of SimCode: time 1.032e-06/0.05787, allocations: 0 / 377 MB, free: 11.1 MB / 346.7 MB Notification: Performance of Templates: time 0.02848/0.08635, allocations: 29.83 MB / 406.8 MB, free: 13.28 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.870033168233931]